Get value from environmental variable or R option or default in that order if the previous one is missing.
get_val(env_var_name, option_name, default = NULL)an object of any class
(character(1)) name of the system variable
(character(1)) name of the option
optional, default value if both Sys.getenv(env_var_name) and getOption(option_name) are empty