msg_or_error: Print message if used on startup or raise error otherwise

Description Usage Arguments Details Author(s)

View source: R/utils.R

Description

Different behavior for message raised by checks.

Usage

1
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.

Author(s)

Ghislain Durif


rkeops documentation built on Feb. 17, 2021, 5:08 p.m.