check_args | R Documentation |
Checks all the arguments in the parent function and makes sure that none of them are NULL
check_args(ignore, select)
ignore |
optionally ignore a few variables for checking [character vector]. |
select |
optionally only check a few variables of the function [character vector]. |
myfunc <- function(verbose = get_opts("verbose"), b = get_opts("b")){ check_args() } set_opts(verbose = 1) ## this will throw an error, suggesting b is not defined properly try(myfunc())
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.