api_key: Allows the user to set and read the api key to be used as...

View source: R/options.R

api_keyR Documentation

Allows the user to set and read the api key to be used as default for all functions in this package.

Description

Allows the user to set and read the api key to be used as default for all functions in this package.

Usage

api_key(key)

Arguments

key

the api key to be used. The old api key is returned invisibly.

Value

If api_key() with no arguments, the current value for the api key is returned or, if it would be ("", the value of the environmental variable ROriginStamp_api_key is returned. If the argument key is specified, the api key will be set to the value of key and the old api key will be returned invisibly.

Examples

api_key()

rkrug/ROriginStamp documentation built on Aug. 16, 2022, 5:45 p.m.