R/utils-misc.R
get_val.Rd
Get Value or Default
get_val(x, key = NULL, ..., .invalids = c("null", "na"))
a list, or environment, or just any R object
the name to obtain from x. Default is NULL
x
NULL
if the value is invalid, the default value to return
what counts as invalid? Default is NULL and NA, represented by "null" and "na"
NA
"null"
"na"