Learn R Programming

crunch (version 1.20.0)

envOrOption: Grab either env variable or option

Description

.Rprofile options are like "crunch.api", while env vars are "R_CRUNCH_API". This function will use the environment variable if it is found, otherwise it looks for the R-based option value.

Usage

envOrOption(opt)

Arguments

opt

the option to get

Value

the value of the option