Learn R Programming

DIZtools (version 1.0.3)

setenv_file: Set all variables of a `.env` file to the system environment.

Description

Internal function to set environment variables that are necessary for the database connections with db_connection. Old function name: `set_env_vars()`.

Usage

setenv_file(env_file)

Value

No return value, called for side effects (see description)

Arguments

env_file

A character. The full path including the file name to the file containing the environment variable definitions to be loaded.

See Also

Sys.setenv

Examples

Run this code
if (FALSE) set_env_vars("./.env")

Run the code above in your browser using DataLab