Skip to content

Latest commit

 

History

History
20 lines (13 loc) · 449 Bytes

ReadMe.md

File metadata and controls

20 lines (13 loc) · 449 Bytes

R Dotenv

For using it in R first you have to have:

  1. A R version installed.

  2. Optionally having a R Studio.

For a .env file like this:

# Install package if not installed yet
if (!require("dotenv")) install.packages("dotenv")
require("dotenv")

load_dot_env(".env")

DB_NAME <- Sys.getenv("DB_NAME")
print(DB_NAME)