freecurrencyapi_api_key {freecurrencyapi}R Documentation

Freecurrencyapi API Key

Description

freecurrencyapi.com requires authentication via an API key. For this package, the API key is saved as a environmental variable. In interactive mode, using freecurrencyapi_api_key will require you to enter an API key. Alternatively, you can also use Sys.setenv(FREECURRENCYAPI_API_KEY = <key>) to set the API key manually.

Usage

freecurrencyapi_api_key(force = FALSE)

Arguments

force

If TRUE, resets the API key & requires the user to provide a new API key. If FALSE and an API key already exists, the key will be printed to the console. If no key exists, you will be required to enter a key. force. Defaults to FALSE.

Value

Returns the set API key that has been stored as an enviroment variable.


[Package freecurrencyapi version 0.1.0 Index]