env.sub: Environment Variable Substitution

Description Usage Arguments Details Value See Also Examples

View source: R/envTools.R

Description

Perform environment variable substitution on a character string

Usage

1

Arguments

x

character string of length 1

Details

Performs shell-like substitution of environment variables in a character string. Expects variable syntax in the Unix format: $MY_VAR

Undefined variable names are left unexpanded.

Value

a character string with all '$' escaped environment variables replaced by their value

See Also

Sys.getenv

Examples

1
  file.info ( env.sub( "${HOME}/.Rprofile"))

robertdouglasmorrison/DuffyTools documentation built on Dec. 7, 2018, 8:02 a.m.