powered by
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")
Invisible TRUE if successful
Path to .Renviron file (default: project root)
# \donttest{ if (interactive()) { # Reload environment after modifying .Renviron reload_env() # Now use the new keys Sys.getenv("OPENAI_API_KEY") } # }
Run the code above in your browser using DataLab