Description Usage Arguments Value Author(s) See Also Examples
Appends a single-line status message to the log text file. The message is prepended by its type, which is one of
STATUS
, INFO
, WARNING
or ERROR
.
1 2 3 4 5 6 7 | logger.status(txt)
logger.info(txt)
logger.warning(txt)
logger.error(txt, terminate = rnb.getOption("logging.exit.on.error"))
|
txt |
Text to add to the log file. This must be a |
terminate |
Flag indicating if the execution is to be terminated after this error message is added to the log. |
None (invisible NULL
).
Yassen Assenov
logger.isinitialized
to check if logging is activated;
logger.start
for initializing a logger or starting a section
1 2 3 4 | if (!logger.isinitialized())
logger.start(fname = NA)
logger.status(c("Reached step", 2))
logger.info(c("Provided email:", rnb.getOption("email")))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.