Change to using Sys.getenv() from getOption()
Roxygenised