Learn R Programming

teal.logger (version 0.4.1)

get_val: Get value from environmental variable or R option or default in that order if the previous one is missing.

Description

Get value from environmental variable or R option or default in that order if the previous one is missing.

Usage

get_val(env_var_name, option_name, default = NULL)

Value

an object of any class

Arguments

env_var_name

(character(1)) name of the system variable

option_name

(character(1)) name of the option

default

optional, default value if both Sys.getenv(env_var_name) and getOption(option_name) are empty