Description Usage Arguments Value Examples
Use the 'is_verbose', 'enable_verbose' and 'disable_verbose' to toggle console output functions.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | enable_cat()
disable_cat()
enable_message()
disable_message()
enable_print()
disable_print()
is_verbose(func = c("print", "cat", "message"))
enable_verbose(func = c("print", "cat", "message"))
disable_verbose(func = c("print", "cat", "message"))
|
func |
character - which function(s) to enable |
logical, whether or not to output specified function
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | # Returns FALSE:
is_verbose("print") #FALSE
enable_verbose()
# Now it returns TRUE:
is_verbose("print") #TRUE
disable_verbose()
# Now it returns FALSE:
is_verbose() #FALSE
is_verbose("print") #FALSE
enable_verbose("print")
print("Hi there!") # Outputs
cat("I won't output") # Doesn't output
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.