View source: R/toggle_silence.R
toggle_silence | R Documentation |
This function detects whether output suppression is on or off, and switches it to its opposite state. Under one setting, this function can be used as an off-switch for the GRASS message/warning/error suppression enforced via the use of silence(value = TRUE)
.
toggle_silence(stay_off = TRUE)
stay_off |
A logical indicating whether output suppression should be kept off once it is turned off. That is, if this function is called but output suppression is already off, then for |
A logical indicating whether output suppression is active.
# Even if silence is currently off, silence will stay off
toggle_silence(TRUE)
# If silence is currently off, silence will be turned on.
toggle_silence(FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.