Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

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, default = NULL)

Arguments

opt

the option to get

default

if the specified option is not set in either the option or as an environment variable, use this instead.

Value

the value of the option


crunch

Crunch.io Data Tools

v1.28.0
LGPL (>= 3)
Authors
Greg Freedman Ellis [aut, cre], Jonathan Keane [aut], Mike Malecki [aut], Neal Richardson [aut], Gordon Shotwell [aut]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.