set_primary_comtrade_key: Set your primary Comtrade API key in the environment variable

View source: R/utils.R

set_primary_comtrade_keyR Documentation

Set your primary Comtrade API key in the environment variable

Description

If you would like your Comtrade API key to persist in between sessions, use usethis::edit_r_environ() to add the env variable COMTRADE_PRIMARY to your environment file.

Usage

set_primary_comtrade_key(key = NULL)

Arguments

key

Provide your primary comtrade key

Value

Saves your comtrade primary key in the environment.

Examples


## set API key
set_primary_comtrade_key("xxxxxc678ca4dbxxxxxxxx8285r3")


ChrisMuir/comtradr documentation built on May 6, 2024, 9:17 p.m.