logMessage | R Documentation |
The message is written to the logFile and displayed in the console, if
logFile
does not exist the message is only displayed in the console.
logMessage(
message = "Start logging file",
logFile = getOption("omopgenerics.logFile")
)
message |
Message to log. |
logFile |
File path to write logging messages. Create a logFile with
|
Invisible TRUE if the logging message is written to a log file.
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.