send_note_if: Conditionally send note to console

View source: R/dev.R

send_note_ifR Documentation

Conditionally send note to console

Description

Send a message or warning if condition is TRUE

Usage

send_note_if(note, condition, fcn, ...)

Arguments

note

A string that will be sent to the console

condition

If TRUE, message will be sent to console.

fcn

A function, e.g., message or warning

...

Additional arguments for fcn

Details

The intended values of fcn are message and warning. If condition is TRUE, then send the message to the console according to fcn. Otherwise, do not send anything to the console.

Value

A note in the console if quietly is FALSE

See Also

Other dev: collect_note_if()

Examples

## Not run: 
send_note_if("This is a warning.", TRUE, warning)

## End(Not run)


omkarakatta/ivqr documentation built on Aug. 20, 2022, 11:04 p.m.