set_api_key

set_api_key(key = null, source_name = null, option = c("env", "file"), ...)

Arguments

key

api key of the source

source_name

evds or fred

option

choice of later usage. env or file should be given to save api key for later use. Default is env which saves api key as environment variable. if env default value is selected it will save api key as an environment variable if file was selected it will save api key to current folder.

...

for future versions

Value

The function has no return value.

Examples

if (FALSE) {

set_api_key("ABCDEFGHIJKLMOP", "evds", "env")
set_api_key("ABCDEFGHIJKLMOP", "fred", "env")
set_api_key("ABCDEFGHIJKLMOP", "fred", "file")
}