Throw an error instead of returning
FALSE if the environment variable is not set or cannot be
converted to boolean.
Value
The value the environment variable is set to, converted to boolean.
FALSE if the environment variable is not set or cannot be
converted to boolean. But see Arguments: stop_on_failure.
Details
As Sys.getenv seems to always return a character vector, the
class of the value you set it to does not matter.