A number of etn options can be configured as Environmental Variables.
To temporarily set an option for the duration of an R session, use:
To store an option permanently, open the .Renviron file
with usethis::edit_r_environ(), edit, and save:
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.