A number of etn options can be configured as Environmental Variables.
Setting options
To temporarily set an option for the duration of an R session, use:
Sys.setenv(ETN_PROTOCOL = "opencpu")
# Retrieve with Sys.getenv("ETN_PROTOCOL")To store an option permanently, open the .Renviron file
with usethis::edit_r_environ(), edit, and save:
Available options
ETN_USER: Your username to the ETN database. See authentication.ETN_PWD: Your password to the ETN database. See authentication.ETN_PROTOCOL(value:"opencpu"or"localdb"): etn will automatically detect how to best connect to the ETN database, i.e. it will use a local database connection when available. This option allows you to override this behaviour by hardcoding the protocol to use.ETN_TEST_API(value: a url) developers only: etn uses the production version of the OpenCPU API by default. This option allows you to use a test version of the OpenCPU API (available upon request). Any other value will break the package.
