Learn R Programming

brickster (version 0.2.12)

read_env_var: Reads Environment Variables

Description

Reads Environment Variables

Usage

read_env_var(
  key = c("token", "host", "wsid", "client_id", "client_secret"),
  profile = NULL,
  error = TRUE
)

Value

named list of values associated with profile

Arguments

key

The value to fetch from profile. One of token, host, wsid, client_id, or client_secret

profile

Character, the name of the profile to retrieve values

error

Boolean, when key isn't found should error be raised

Details

Fetches relevant environment variables based on profile