{"id":14067107,"url":"https://github.com/gaborcsardi/dotenv","last_synced_at":"2025-04-07T12:07:57.615Z","repository":{"id":19961075,"uuid":"23227981","full_name":"gaborcsardi/dotenv","owner":"gaborcsardi","description":"Load environment variables from .env in R","archived":false,"fork":false,"pushed_at":"2024-05-06T19:38:25.000Z","size":30,"stargazers_count":90,"open_issues_count":7,"forks_count":8,"subscribers_count":3,"default_branch":"x","last_synced_at":"2024-10-11T18:26:29.862Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"R","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gaborcsardi.png","metadata":{"files":{"readme":"README.Rmd","changelog":"NEWS.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2014-08-22T14:25:26.000Z","updated_at":"2024-10-01T17:47:28.000Z","dependencies_parsed_at":"2024-08-13T07:11:55.959Z","dependency_job_id":null,"html_url":"https://github.com/gaborcsardi/dotenv","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gaborcsardi%2Fdotenv","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gaborcsardi%2Fdotenv/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gaborcsardi%2Fdotenv/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gaborcsardi%2Fdotenv/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gaborcsardi","download_url":"https://codeload.github.com/gaborcsardi/dotenv/tar.gz/refs/heads/x","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247648977,"owners_count":20972945,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-13T07:05:26.253Z","updated_at":"2025-04-07T12:07:57.392Z","avatar_url":"https://github.com/gaborcsardi.png","language":"R","funding_links":[],"categories":["R"],"sub_categories":[],"readme":"---\noutput: github_document\n---\n\n```{r, setup, echo = FALSE, message = FALSE}\nknitr::opts_chunk$set(\n  comment = \"##\",\n  error = TRUE,\n  tidy = FALSE,\n  fig.width = 8,\n  fig.height = 8)\n```\n\n\u003c!-- badges: start --\u003e\n[![Project Status: Active - The project has reached a stable, usable state and is being actively developed.](https://www.repostatus.org/badges/latest/active.svg)](https://www.repostatus.org/#active)\n[![R build status](https://github.com/gaborcsardi/dotenv/workflows/R-CMD-check/badge.svg)](https://github.com/gaborcsardi/dotenv/actions)\n[![CRAN RStudio mirror downloads](https://cranlogs.r-pkg.org/badges/dotenv)](https://www.r-pkg.org/pkg/dotenv)\n[![Coverage Status](https://img.shields.io/codecov/c/github/gaborcsardi/dotenv/master.svg)](https://codecov.io/github/gaborcsardi/dotenv?branch=master)\n\u003c!-- badges: end --\u003e\n\n# dotenv — Load environment variables from .env\n\nThis package loads the variables defined in the `.env` file\nin the current working directory (as reported by `getwd()`),\nand sets them as environment variables.\n\nThis happens automatically when the `dotenv` package is loaded,\nso the typical use-case is to just put a `library(dotenv)` call at the\nbeginning of your R script.\n\nAlternatively a `dotenv::load_dot_env()` call can be used\nto load variables from arbitrary files.\n\n## Installation\n\n```{r eval = FALSE}\ninstall.packages(\"dotenv\")\n```\n\n## Usage\n\nYou can simply put\n\n```{r eval = FALSE}\nlibrary(dotenv)\n```\n\nat the beginning of your script, to load the environment variables defined\nin `.env` in the current working directory.\n\n## File format\n\nThe `.env` file is parsed line by line, and line is expected\nto have one of the following formats:\n\n```\nVARIABLE=value\nVARIABLE2=\"quoted value\"\nVARIABLE3='another quoted variable'\n# Comment line\nexport EXPORTED=\"exported variable\"\nexport EXPORTED2=another\n```\n\nIn more details:\n\n * A leading `export` is ignored, to keep the file\n   compatible with Unix shells.\n * No whitespace is allowed right before or after the\n   equal sign, again, to promote compatilibity with Unix shells.\n * No multi-line variables are supported currently. The\n   file is strictly parsed line by line.\n * Unlike for Unix shells, unquoted values are _not_\n   terminated by whitespace.\n * Comments start with `#`, without any leading\n   whitespace. You cannot mix variable definitions and\n   comments in the same line.\n * Empty lines (containing whitespace only) are ignored.\n\n It is suggested to keep the file in a form that is parsed the\n same way with `dotenv` and `bash` (or other shells).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgaborcsardi%2Fdotenv","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgaborcsardi%2Fdotenv","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgaborcsardi%2Fdotenv/lists"}