setEnv | R Documentation |
Saves the API key to a local .Renviron file for persistent access across R sessions
setEnv(api_key, overwrite = TRUE, install_message = TRUE)
api_key |
The API key to store |
overwrite |
Whether to overwrite the existing API key if already present in .Renviron (default: TRUE) |
install_message |
Whether to display a message about how to use the API (default: TRUE) |
No return value, called for side effects.
setAPI
which sets the API key for the current session only
## Not run:
setEnv("your_api_key")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.