#'@rdname logging
#'
#'@param name The name of the currently active script
#'@param desc The description of the currently active script
#'
#'@details
#'\code{setCronjobValues} and \code{clearCronjobValues} are automatically added
#'to scripts processed by \code{crontabR} so that the loggin system will be able
#'to assign the correct name to the log entries. There shouldn't be any need for
#'a user to use these functions.
#'@export
setCronjobValues <- function(name, desc, logLevel = "info", textLevel = "none") {
v <- list(
name = name,
description = desc,
logLevel = logLevel,
textLevel = textLevel
)
options("crontabRjobValues" = v)
}
#'@export
clearCronjobValues <- function() {
options("crontabRjobValues" = NULL)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.