Package: comtradr 1.0.4

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:Paul Bochtler [aut, cre, cph], Harriet Goers [aut], Chris Muir [aut], Alicia Schep [rev], Rafael Hellwig [rev], Ernest Guevarra [rev], Nicholas Potter [rev], Juergen Amann [ctb]

comtradr_1.0.4.tar.gz
comtradr_1.0.4.zip(r-4.6)comtradr_1.0.4.zip(r-4.5)comtradr_1.0.4.zip(r-4.4)
comtradr_1.0.4.tgz(r-4.5-any)comtradr_1.0.4.tgz(r-4.4-any)
comtradr_1.0.4.tar.gz(r-4.6-any)comtradr_1.0.4.tar.gz(r-4.5-any)
comtradr_1.0.4.tgz(r-4.5-emscripten)comtradr_1.0.4.tgz(r-4.4-emscripten)
comtradr.pdf |comtradr.html
comtradr/json (API)
NEWS

# 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 site:https://docs.ropensci.org

Datasets:

On CRAN:

Conda:

apicomtradepeer-reviewedsupply-chain

8.62 score 71 stars 97 scripts 864 downloads 1 mentions 15 exports 41 dependencies

Last updated 19 days ago from:2e478915ed (on main). Checks:9 OK, 2 NOTE. Indexed: yes.

TargetResultTotal timeArtifact
linux-devel-x86_64OK135
pkgdown docsOK193
source / vignettesOK193
linux-release-x86_64OK135
macos-release-arm64OK118
macos-oldrel-arm64NOTE91
windows-develOK83
windows-releaseOK83
windows-oldrelNOTE87
wasm-releaseOK116
wasm-oldrelOK179

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:askpassbitbit64cachemclicliprcpp11crayoncurlfastmapfsgenericsgluehmshttr2lifecyclelubridatemagrittrmemoiseopensslpillarpkgconfigpoormanprettyunitsprogresspurrrR6rappdirsreadrrlangstringistringrsystibbletidyselecttimechangetzdbutf8vctrsvroomwithr

Querying bulk files from the API

Rendered frombulk_files.Rmdusingknitr::rmarkdownon Aug 02 2025.

Last update: 2024-05-13
Started: 2024-05-13

Caching requests from the UN Comtrade API

Rendered fromcaching.Rmdusingknitr::rmarkdownon Aug 02 2025.

Last update: 2024-05-23
Started: 2024-02-04

comtradr

Rendered fromcomtradr.Rmdusingknitr::rmarkdownon Aug 02 2025.

Last update: 2025-07-31
Started: 2023-06-27

Querying large amounts of data

Rendered fromlarge_data.Rmdusingknitr::rmarkdownon Aug 02 2025.

Last update: 2024-05-13
Started: 2023-12-22

Transition from old comtradr

Rendered fromtransition.Rmdusingknitr::rmarkdownon Aug 02 2025.

Last update: 2023-12-23
Started: 2023-12-22