lp_api_key: Find API Key for Leanpub

Description Usage Arguments Value Note Examples

Description

Determines if Leanpub API Key is set. If not, it stops and returns an error. If so, returns the value.

Usage

1
2
3
lp_api_key(api_key = NULL, error = TRUE)

lp_have_api_key(api_key = NULL)

Arguments

api_key

Leanpub API key (Sys.getenv('LEANPUB_API_KEY'))

error

Should the function error if api_key = NULL?

Value

Character API key

Note

You can either set the API key or have it accessible by api_key = Sys.getenv('LEANPUB_API_KEY').

Examples

1
2
res = lp_api_key(error = FALSE)
lp_have_api_key()

muschellij2/leanpubr documentation built on May 18, 2019, 8:10 p.m.