Package: comtradr 1.1.0


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.1.0.tar.gz
comtradr_1.1.0.zip(r-4.7-any)comtradr_1.1.0.zip(r-4.6-any)comtradr_1.1.0.zip(r-4.5-any)
comtradr_1.1.0.tgz(r-4.6-any)comtradr_1.1.0.tgz(r-4.5-any)
comtradr_1.1.0.tar.gz(r-4.7-any)comtradr_1.1.0.tar.gz(r-4.6-any)
comtradr_1.1.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
comtradr/json (API)
| # Install 'comtradr' in R: |
| install.packages('comtradr', repos = c('https://ropensci.r-universe.dev', 'https://cloud.r-project.org')) |
Reviews:rOpenSci Software Review #613
Bug tracker:https://github.com/ropensci/comtradr/issues
Pkgdown/docs site:https://docs.ropensci.org
- country_codes - Country codes
- ct_pretty_cols - Ct_pretty_cols
apicomtradepeer-reviewedsupply-chain
Last updated from:56e547d376 (on main). Checks:10 OK. Indexed: yes.
| Target | Result | Time | Files | Syslog |
|---|---|---|---|---|
| linux-devel | OK | 156 | ||
| pkgdown docs | OK | 168 | ||
| source / vignettes | OK | 258 | ||
| linux-release | OK | 145 | ||
| macos-release | OK | 103 | ||
| macos-oldrel | OK | 90 | ||
| windows-devel | OK | 81 | ||
| windows-release | OK | 91 | ||
| windows-oldrel | OK | 87 | ||
| wasm-release | OK | 135 |
Exports:ct_commodity_db_typect_commodity_lookupct_country_lookupct_get_bulkct_get_datact_get_ref_tablect_get_remaining_hourly_queriesct_get_reset_timect_get_trade_matrixct_migrate_cachect_register_tokenct_searchct_update_databasesct_use_pretty_colsget_primary_comtrade_keyset_primary_comtrade_key
Dependencies:askpassbitbit64cachemclicliprcpp11crayoncurldplyrfastmapfsgenericsgluehmshttr2lifecyclelubridatemagrittrmemoiseopensslpillarpkgconfigprettyunitsprogresspurrrR6rappdirsreadrrlangstringistringrsystibbletidyselecttimechangetzdbutf8vctrsvroomwithr
Last update: 2026-09-19
Started: 2026-09-19
Last update: 2026-07-30
Started: 2023-12-22
Last update: 2025-07-31
Started: 2023-06-27
Last update: 2024-05-23
Started: 2024-02-04
Last update: 2024-05-13
Started: 2024-05-13
Last update: 2024-05-13
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 |
| Get (estimated) trade matrix data from the UN Comtrade API | ct_get_trade_matrix |
| 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 |