define_options(
"Whether execution should emit console output",
quiet = FALSE,
"Whether to use detailed console output (showcasing additional
configuration parameters)",
verbose = TRUE,
envvar_fn = envvar_is_true()
)
define_option(
"deprecations",
desc = "Whether deprecation warnings should be suppressed automatically",
default = FALSE,
option_name = "MypackageDeprecations",
envvar_name = "MYPACKAGE_ENVVARS_DEPRECATIONS"
)
Run the code above in your browser using DataLab