| reload_env | R Documentation |
Forces R to re-read the .Renviron file without restarting the session. This is useful when you've modified .Renviron and don't want to restart R.
reload_env(path = ".Renviron")
path |
Path to .Renviron file (default: project root) |
Invisible TRUE if successful
if (interactive()) {
# Reload environment after modifying .Renviron
reload_env()
# Now use the new keys
Sys.getenv("OPENAI_API_KEY")
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.