Learn R Programming

rscopus (version 0.8.1)

get_api_key: Find API Key for Elsevier

Description

Determines if option(elsevier_api_key) or option(elsevier_api_key_filename) is set. If not, it stops and returns an error. If so, returns the value.

Usage

get_api_key(api_key = NULL, error = TRUE)

have_api_key(api_key = NULL)

Value

API key

Arguments

api_key

Elsevier API key

error

Should the function error if api_key = NULL?

Examples

Run this code
res = get_api_key(error = FALSE)

Run the code above in your browser using DataLab