readRenviron: Set Environment Variables from a File

Description Usage Arguments Value See Also Examples

View source: R/files.R

Description

Read as file such as ‘.Renviron’ or ‘Renviron.site’ in the format described in the help for Startup, and set environment variables as defined in the file.

Usage

1

Arguments

path

A length-one character vector giving the path to the file. Tilde-expansion is performed where supported.

Value

Scalar logical indicating if the file was read successfully. Returned invisibly. If the file cannot be opened for reading, a warning is given.

See Also

Startup for the file format.

Examples

1
2
3
4
5
## Not run: 
## re-read a startup file (or read it in a vanilla session)
readRenviron("~/.Renviron")

## End(Not run)

robertzk/monadicbase documentation built on May 27, 2019, 10:35 a.m.