Is it possible to set an options
to NULL
while using getOption
with a default value other than NULL?
options("TEST" = NULL)
getOption("TEST")
# NULL
getOption("TEST", default=1)
# [1] 1
I would have expected the last line to return NULL
. Is this intended behavior.