Load Environment Variables from '.env'
Overview
Load configuration from a '.env' file, that is in the current working directory, into environment variables.
- dotenv now does not error if the env file is empty (#5, @cimentadaj).
From NEWS.md in the release
Install
Health
NOTER code for possible problemsr-devel-linux-x86_64-debian-clang, r-devel-linux-x86_64-debian-gcc, r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc, r-devel-windows-x86_64
Found calls to structure() using deprecated special names: dotenv/R/dotenv-package.r (.Names: 1) '.Names' should be changed to 'names'.
- NOTE8 OK, 5 NOTENow
- NOTE12 OK, 1 NOTE2026-07-16
- OK14 OK2026-03-10
Documentation
- Help pages
- 2includes a package overview page
- Examples that run
- 100%1 run in a plain check
- Exported functions with examples
- 100%
- Documented parameters
- 100%
- Return-value docs
- 0%
- Help pages citing references
- 0%
Downloads
Repository
- PRs merged (all time)
- 75%
- Median days to close, 50 most recently updated closed issues
- 3
- Median days to close, 50 most recently updated closed PRs
- 2
Stars over time
Forks over time
Releases over time
Issues over time
PRs over time
4 development-tooling and community-health practices detected across 3 families in the upstream repository
Checks run against github.com/gaborcsardi/dotenv on 2026-10-18.
The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel
Dependencies
Installing dotenv adds no packages beyond those that come with R.
Code & Tests
People & History
Maintainer since 1.0 (2014)
Pick two releases to compare their code metrics.
- RR 4.6.0 released · 2026-04-24
- RR 4.5.0 released · 2025-04-11
- RR 4.4.0 released · 2024-04-24
- RR 4.3.0 released · 2023-04-21
- RR 4.2.0 released · 2022-04-22
- RR 4.1.0 released · 2021-05-18
- 1.0.3Latest
- RR 4.0.0 released · 2020-04-24
- RR 3.6.0 released · 2019-04-26
- RR 3.5.0 released · 2018-04-23
- RR 3.4.0 released · 2017-04-21
- 1.0.22017-03-01 · diff ↗
- RR 3.3.0 released · 2016-05-03
- 1.0.12016-04-07 · diff ↗
- RR 3.2.0 released · 2015-04-16
- 1.02014-08-27
Show 1 earlier eventHide 1 earlier event
- RR 3.1.0 released · 2014-04-10
Package metadata
- First published
- 2014-08-27
- Total releases
- 4 / 12 yrs
- License
- MIT + file LICENSE OSI
- Download size
- 4.0 KB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("dotenv")This package has no citation file, so citation() returns this entry built from DESCRIPTION.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-21, which the citation names so these numbers can be found later. More on citing and the projects behind them.