
Load Environment Variables
load_env.RdHelper to load credentials from .env file.
Usage
load_env(
env_path,
req_vars = c("MIXPANEL_SERVICE_ACCOUNT_USERNAME", "MIXPANEL_SERVICE_ACCOUNT_SECRET",
"MIXPANEL_PROJECT_ID")
)Details
Credentials should be stored in a .env.local file in the project's root folder. This function will use dotenv to load the variables from the .env.local file in as environment variables to be accessed during the API call.
See also
Other env:
setup_env_file()