powered by
Use inside your package to setup a zephyr_option that you can use in your functions with get_option(). The specification is stored inside the environment of your package.
zephyr_option
get_option()
For more information and how to get started see use_zephyr().
use_zephyr()
create_option(name, default, description = name, .envir = parent.frame())
Invisible zephyr_option object
[character(1)] Name of the option
[character(1)]
[any] Default value of the option
[any]
[character(1)] Description of the option
Environment in which the option is defined. Default is suitable for use inside your package.
if (FALSE) { create_option( name = "answer", default = 42, description = "This is supposed to be the question" ) }
Run the code above in your browser using DataLab