ppc_api_key: Set ProPublica API key

Description Usage Arguments Value Examples

View source: R/ppc_api.R

Description

Stores ProPublica API key as an environment variable for current and/or future sessions

Usage

1
ppc_api_key(api_key = NULL, set_renv = FALSE)

Arguments

api_key

The actual API key string provided by ProPublica..

set_renv

Logical indicating whether to append the environment variable to the home directory's ".Renviron" file. This requires directory permission, but it will ensure that future sessions automatically find the token. The default is FALSE (do NOT set in ~/.Renviron).

Value

the API key string

Examples

1
2
## this is not a real key
ppc_api_key("as9d78f6aayd9fy2fq378a9ds876fsas89d7f")

mkearney/ppc documentation built on Dec. 18, 2019, 5:40 a.m.