Learn R Programming

rkeops (version 1.4.2.2)

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.

Author

Ghislain Durif

Details

If onLoad=TRUE, print the message msg. If onLoad=FALSE, raise on error with message msg.