set_environ: Write list of values to .Renviron file in correct format

View source: R/r-environ-file.R

set_environR Documentation

Write list of values to .Renviron file in correct format

Description

Any default-required values missing from inputs are filled in from defaults (see ?get_default_environ)

Usage

set_environ(
  ...,
  .env = rlang::new_environment(parent = rlang::caller_env()),
  .Renviron = ".Renviron"
)

Arguments

...

values to modify from defaults

.env

environment to evaluate the arguments in, child of caller by default

.Renviron

path to .Renviron file for the project

Details

Warning: the default .Renviron path assumes the function is running with the working directory set to the project directory.

Value

list of environment values, these are also written to the specified .Renviron file and read into the current session using readRenviron


sakrejda/workflow documentation built on Nov. 18, 2024, 3:02 a.m.