powered by
Create a log message
make_log( msg, ..., type = "I", dtFormat = getOption("nhlapi_log_datetime"), newLine = FALSE, sep = " | ", collapse = " ", lineBreak = "$", endNewLine = FALSE )
character(1), to be logged.
character(1)
additional character() strings to be logged. Will be pasted to msg and collapsed using the collapse argument.
character()
msg
collapse
character(1) ideally 1 uppercase letter.
character(1), passed to format for [Sys.time()]
[Sys.time()]
logical(1), if TRUE, new line will be pasted. to the beginning of the message.
logical(1)
TRUE
character(1) string, to separate parts of the message.
character(1) string
character(1), to collapse msg and ....
...
character(1), replacing line breaks in msg.
logical(1), if TRUE, new line will be pasted to the end of the message.
character(1), constructed log message.
# NOT RUN { nhlapi:::make_log("Dummy warning", type = "W") # }
Run the code above in your browser using DataLab