notify_once: Print a warning message if not printed earlier

Description Usage Arguments Author(s)

View source: R/message.r

Description

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

Usage

1
2
3
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 fit and evaluate.

Author(s)

Christofer Bäcklin


emil documentation built on Aug. 1, 2018, 1:03 a.m.

Related to notify_once in emil...