powered by
Saves the API key to a local .Renviron file for persistent access across R sessions
setEnv(api_key, overwrite = TRUE, install_message = TRUE)
No return value, called for side effects.
The API key to store
Whether to overwrite the existing API key if already present in .Renviron (default: TRUE)
Whether to display a message about how to use the API (default: TRUE)
setAPI which sets the API key for the current session only
setAPI
if (FALSE) { setEnv("your_api_key") }
Run the code above in your browser using DataLab