dot-make_env: Create or append to .env file

.make_envR Documentation

Create or append to .env file

Description

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.

Usage

.make_env(..., comment = NULL, check_gitignore = TRUE)

Arguments

...

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

Value

Invisibly returns TRUE on success


framework documentation built on Feb. 18, 2026, 1:07 a.m.