createLogFile | R Documentation |
Create a log file
createLogFile(logFile = here::here("log_{date}_{time}"))
logFile |
File path to write logging messages. You can use '{date}' and '{time}' to add the date and time in the log file name. |
Invisible TRUE if logger was created correctly.
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.