Learn R Programming

comtradr (version 1.0.2)

get_primary_comtrade_key: get_primary_comtrade_key

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

get_primary_comtrade_key()

Arguments

Value

Gets your primary comtrade key from the environment var COMTRADE_PRIMARY

Examples

Run this code
if (FALSE) { # interactive()
## get API key
get_primary_comtrade_key()
}

Run the code above in your browser using DataLab