In R how can I get an environment variable value, or a default value if the variable is not set?
I'm looking for something of the form:
Sys.getenv("FOO_KEY").withDefault("barValue")
There is a similar question which only asks how to get an environment variable that is sure to exist.
Thank you in advance for your consideration and response.