| .make_env | R Documentation |
Creates a .env file (if it doesn't exist) and appends environment variables. Warns if .env is not in .gitignore to prevent accidental secret exposure.
.make_env(..., comment = NULL, check_gitignore = TRUE)
... |
Named arguments for environment variables (e.g., DB_PASSWORD = "secret") |
comment |
Optional comment to add before the variables |
check_gitignore |
Logical; if TRUE (default), warns if .env not gitignored |
Invisibly returns TRUE on success
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.