createLogFile {omopgenerics} | R Documentation |
Create a log file
Description
Create a log file
Usage
createLogFile(logFile = here::here("log_{date}_{time}"))
Arguments
logFile |
File path to write logging messages. You can use '{date}' and '{time}' to add the date and time in the log file name. |
Value
Invisible TRUE if logger was created correctly.
Examples
library(dplyr)
logFile <- tempfile(pattern = "log_{date}_{time}", fileext = ".txt")
createLogFile(logFile = logFile)
logMessage("Starting analysis")
1 + 1
logMessage("Analysis finished")
res <- summariseLogFile()
glimpse(res)
tidy(res)
[Package omopgenerics version 1.2.0 Index]