msg_or_error: Print message if used on startup or raise error otherwise
Description
Different behavior for message raised by checks.
Usage
msg_or_error(msg, onLoad = FALSE)
Arguments
- msg
character string, text message.
- onLoad
boolean, indicating whether the function is called from
startup or not.
Details
If onLoad=TRUE
, print the message msg
. If onLoad=FALSE
, raise on error
with message msg
.