Learn R Programming

emil (version 2.0.2)

notify_once: Print a warning message if not printed earlier

Description

To avoid flooding the user with identical warning messages, this function keeps track of which have already been shown.

Usage

notify_once(id, ..., fun = log_message)

reset_notification(id, if_top_level = TRUE)

Arguments

id
Warning message id. This is used internally to refer to the message.
...
Sent to warning.
fun
Function to display the notification with. Typical choices are message or warning.
if_top_level
If TRUE the notifications will only be reset if reset_notification was called from a top-level function call. This behaviour prevents the notifications from being reset multiple times during nested calls to functions such as