System Environment Variables
Sys.getenv_value(name, raw = FALSE)
name | variable name as a character string. |
---|---|
raw | logical that indicates if one should return the raw value or
the convertion of any false value to |
the value of the environment variable as a character string or
NA
is the variable is not defined at all.
# undefined returns FALSE Sys.getenv_value('TOTO')#> [1] FALSE# raw undefined returns NA Sys.getenv_value('TOTO', raw = TRUE)#> [1] NA#> [1] "bla"#> [1] FALSE#> [1] FALSE