write_log | R Documentation |
Internal function to write log-messages to the file specified in logfilename.
write_log(message, logfilename)
message |
A character string containing the log message. |
logfilename |
A character string. Path to the logfile to save the log messages. |
The function prints the logging message to the console and writes it to the local logfile, specified with 'logfilename'.
message <- "This is a logmessage" logfilename <- paste0(tempdir(), "/log.txt") write_log(message, logfilename)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.