Description Usage Arguments Details Value Examples
logMessage
uses cat() to append a message to the current log
file. The file name is taken from the rete.logfile global option.
1 | logMessage(msg)
|
msg |
a character object or vector of character objects. |
The function will stop() if message is not of mode, type and class character. On windows systems, cat() replaces \n linebreaks with \r\n. Therefore logMessage() converts all linebreaks internally to \n before handing them to cat().
N/A. This function is invoked for its side-effect to appended text to the current logfile.
1 2 3 4 5 | ## Not run:
msg <- c("note > ", Sys.Date(), "Re-run analysis.")
logMessage(msg)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.