Adds Felt API key to .Renviron.
Usage
set_felt_key(key, overwrite = FALSE, install = FALSE, r_env = NULL)
felt_set_key(key, overwrite = FALSE, install = FALSE, r_env = NULL)Arguments
- key
Character. API key to add to add.
- overwrite
Defaults to FALSE. Boolean. Should existing
FELT_KEYin Renviron be overwritten?- install
Defaults to FALSE. Boolean. Should this be added to an environment file,
r_env?- r_env
Path to install to if
installisTRUE.
Examples
example_env <- tempfile(fileext = '.Renviron')
set_felt_key('1234', r_env = example_env)
# r_env should likely be: file.path(Sys.getenv('HOME'), '.Renviron')
