Interface to the 'ComexStat' API <https://comexstat.mdic.gov.br/> from the Brazilian Ministry of Development, Industry, Trade and Services (MDIC). Provides access to detailed export and import data, including general trade statistics (1997-present), city-level data, historical data (1989-1996), and auxiliary tables with product codes (NCM - Nomenclatura Comum do Mercosul, NBM - Nomenclatura Brasileira de Mercadorias, HS - Harmonized System), countries, economic classifications (CGCE - Classificacao por Grandes Categorias Economicas, SITC - Standard International Trade Classification, ISIC - International Standard Industrial Classification), and other categories. Uses only 'httr2' for HTTP requests and 'cli' for console messages.
| Version: | 0.2.0 |
| Depends: | R (≥ 4.1.0) |
| Imports: | httr2 (≥ 1.0.0), cli (≥ 3.6.0) |
| Suggests: | testthat (≥ 3.0.0), knitr, rmarkdown, tibble |
| Published: | 2026-03-10 |
| DOI: | 10.32614/CRAN.package.comexr (may not be active yet) |
| Author: | Andre Leite [aut, cre], Marcos Wasilew [aut], Hugo Vasconcelos [aut], Carlos Amorin [aut], Diogo Bezerra [aut] |
| Maintainer: | Andre Leite <leite at castlab.org> |
| BugReports: | https://github.com/StrategicProjects/comexr/issues |
| License: | MIT + file LICENSE |
| URL: | https://strategicprojects.github.io/comexr/, https://github.com/StrategicProjects/comexr |
| NeedsCompilation: | no |
| Language: | en-US |
| Materials: | README |
| CRAN checks: | comexr results |
| Reference manual: | comexr.html , comexr.pdf |
| Vignettes: |
Auxiliary Tables & Lookups (source, R code) Getting Started with comex (source, R code) Querying Trade Data (source, R code) |
| Package source: | comexr_0.2.0.tar.gz |
| Windows binaries: | r-devel: not available, r-release: not available, r-oldrel: not available |
| macOS binaries: | r-release (arm64): comexr_0.2.0.tgz, r-oldrel (arm64): comexr_0.2.0.tgz, r-release (x86_64): not available, r-oldrel (x86_64): not available |
Please use the canonical form https://CRAN.R-project.org/package=comexr to link to this page.