Learn R Programming

leanpubr (version 0.3.1)

lp_api_key: Find API Key for Leanpub

Description

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

Usage

lp_api_key(api_key = NULL, error = TRUE)

lp_have_api_key(api_key = NULL)

Value

Character API key

Arguments

api_key

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

error

Should the function error if api_key = NULL?

Examples

Run this code
res = lp_api_key(error = FALSE)
lp_have_api_key()

Run the code above in your browser using DataLab