Package: comtradr 1.0.3


Paul Bochtler
comtradr: Interface with the United Nations Comtrade API
Interface with and extract data from the United Nations 'Comtrade' API <https://comtradeplus.un.org/>. 'Comtrade' provides country level shipping data for a variety of commodities, these functions allow for easy API query and data returned as a tidy data frame.
Authors:
comtradr_1.0.3.tar.gz
comtradr_1.0.3.zip(r-4.6)comtradr_1.0.3.zip(r-4.5)comtradr_1.0.3.zip(r-4.4)
comtradr_1.0.3.tgz(r-4.5-any)comtradr_1.0.3.tgz(r-4.4-any)
comtradr_1.0.3.tar.gz(r-4.6-any)comtradr_1.0.3.tar.gz(r-4.5-any)
comtradr_1.0.3.tgz(r-4.4-emscripten)
comtradr.pdf |comtradr.html✨
comtradr/json (API)
NEWS
# Install 'comtradr' in R: |
install.packages('comtradr', repos = c('https://packages.ropensci.org', 'https://cloud.r-project.org')) |
Reviews:rOpenSci Software Review #613
Bug tracker:https://github.com/ropensci/comtradr/issues
Pkgdown site:https://docs.ropensci.org
- country_codes - Country codes
- ct_pretty_cols - Ct_pretty_cols
apicomtradepeer-reviewedsupply-chain
Last updated 7 months agofrom:f5b2715bf6 (on main). Checks:8 OK, 2 NOTE. Indexed: yes.
Target | Result | Total time |
---|---|---|
source / vignettes | OK | 254 |
pkgdown docs | OK | 361 |
linux-devel-x86_64 | OK | 175 |
linux-release-x86_64 | OK | 271 |
macos-release-arm64 | OK | 78 |
macos-oldrel-arm64 | NOTE | 97 |
windows-devel | OK | 96 |
windows-release | OK | 90 |
windows-oldrel | NOTE | 104 |
wasm-release | OK | 138 |
Exports:ct_commodity_db_typect_commodity_lookupct_country_lookupct_get_bulkct_get_datact_get_ref_tablect_get_remaining_hourly_queriesct_get_reset_timect_migrate_cachect_register_tokenct_searchct_update_databasesct_use_pretty_colsget_primary_comtrade_keyset_primary_comtrade_key
Dependencies:askpassbitbit64cachemclicliprcpp11crayoncurlfansifastmapfsgenericsgluehmshttr2lifecyclelubridatemagrittrmemoiseopensslpillarpkgconfigpoormanprettyunitsprogresspurrrR6rappdirsreadrrlangstringistringrsystibbletidyselecttimechangetzdbutf8vctrsvroomwithr
Querying bulk files from the API
Rendered frombulk_files.Rmd
usingknitr::rmarkdown
on May 29 2025.Last update: 2024-05-13
Started: 2024-05-13
Caching requests from the UN Comtrade API
Rendered fromcaching.Rmd
usingknitr::rmarkdown
on May 29 2025.Last update: 2024-05-23
Started: 2024-02-04
comtradr
Rendered fromcomtradr.Rmd
usingknitr::rmarkdown
on May 29 2025.Last update: 2024-04-22
Started: 2023-06-27
Querying large amounts of data
Rendered fromlarge_data.Rmd
usingknitr::rmarkdown
on May 29 2025.Last update: 2024-05-13
Started: 2023-12-22
Transition from old comtradr
Rendered fromtransition.Rmd
usingknitr::rmarkdown
on May 29 2025.Last update: 2023-12-23
Started: 2023-12-22
Readme and manuals
Help Manual
Help page | Topics |
---|---|
Country codes | country_codes |
ct_commodity_db_type | ct_commodity_db_type |
UN Comtrade commodities database query | ct_commodity_lookup |
ct_country_lookup | ct_country_lookup |
Get trade data from the UN Comtrade API | ct_get_bulk |
Get trade data from the UN Comtrade API | ct_get_data |
Get reference table from package data | ct_get_ref_table |
ct_get_remaining_hourly_queries | ct_get_remaining_hourly_queries |
ct_get_reset_time | ct_get_reset_time |
Migrate cache to new location | ct_migrate_cache |
ct_pretty_cols | ct_pretty_cols |
ct_register_token | ct_register_token |
ct_search | ct_search |
ct_update_databases | ct_update_databases |
ct_use_pretty_cols | ct_use_pretty_cols |
get_primary_comtrade_key | get_primary_comtrade_key |
Set your primary Comtrade API key in the environment variable | set_primary_comtrade_key |