Print message to output with a prefix including data and time, and calling function or full call stack
msg(..., date = TRUE, call.depth = 1, caller.id = 1,
newline = FALSE, newline.pre = FALSE, as.message = FALSE,
color = NULL, sep = " ")msg0(..., date = TRUE, call.depth = 1, caller.id = 1,
newline = FALSE, newline.pre = FALSE, as.message = FALSE,
color = NULL)
Message to print
Logical: if TRUE, include date and time in the prefix
Integer: Print the system call path of this depth. Default = NULL
Integer: Which function in the call stack to print
Logical: If TRUE end with a new line. Default = FALSE
Logical: If TRUE begin with a new line. Default = FALSE
Logical: if TRUE, print using message()
Color for message to use with crayon
String: Use to separate objects in ...
Invisibly: List with call, message, and date
If msg
is called directly from the console, it will print [interactive>]
in place of
the call stack.
msg0
, similar to paste0
, is msg(..., sep = "")