{
  "_id": "6a1eef2db401979e73412b07",
  "Package": "comexr",
  "Title": "Client for the Brazilian Foreign Trade Statistics API\n('ComexStat')",
  "Version": "0.3.1",
  "Date": "2026-06-02",
  "Authors@R": "c(\nperson(\"Andre\", \"Leite\", email = \"leite@castlab.org\", role = c(\"aut\", \"cre\")),\nperson(\"Marcos\", \"Wasilew\", email = \"marcos.wasilew@gmail.com\", role = \"aut\"),\nperson(\"Hugo\", \"Vasconcelos\", email = \"hugo.vasconcelos@ufpe.br\", role = \"aut\"),\nperson(\"Carlos\", \"Amorin\", email = \"carlos.agaf@ufpe.br\", role = \"aut\"),\nperson(\"Diogo\", \"Bezerra\", email = \"diogo.bezerra@ufpe.br\", role = \"aut\"))",
  "Description": "Interface to the 'ComexStat' API\n<https://comexstat.mdic.gov.br/> from the Brazilian Ministry of\nDevelopment, Industry, Trade and Services (MDIC). Provides\naccess to detailed export and import data, including general\ntrade statistics (1997-present), city-level data, historical\ndata (1989-1996), and auxiliary tables with product codes (NCM\n- Nomenclatura Comum do Mercosul, NBM - Nomenclatura Brasileira\nde Mercadorias, HS - Harmonized System), countries, economic\nclassifications (CGCE - Classificacao por Grandes Categorias\nEconomicas, SITC - Standard International Trade Classification,\nISIC - International Standard Industrial Classification), and\nother categories. Uses only 'httr2' for HTTP requests and 'cli'\nfor console messages.",
  "License": "MIT + file LICENSE",
  "URL": "https://strategicprojects.github.io/comexr/,\nhttps://github.com/StrategicProjects/comexr",
  "BugReports": "https://github.com/StrategicProjects/comexr/issues",
  "Encoding": "UTF-8",
  "Roxygen": "list(markdown = TRUE)",
  "VignetteBuilder": "knitr",
  "Config/testthat/edition": "3",
  "Language": "en-US",
  "Config/roxygen2/version": "8.0.0",
  "Config/pak/sysreqs": "libssl-dev",
  "Repository": "https://strategicprojects.r-universe.dev",
  "Date/Publication": "2026-06-02 14:18:37 UTC",
  "RemoteUrl": "https://github.com/strategicprojects/comexr",
  "RemoteRef": "HEAD",
  "RemoteSha": "2b811bbf2bac58506b5b6ec07e44db5d98fab379",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-06-02 14:53:48 UTC",
    "User": "root"
  },
  "Author": "Andre Leite [aut, cre],\nMarcos Wasilew [aut],\nHugo Vasconcelos [aut],\nCarlos Amorin [aut],\nDiogo Bezerra [aut]",
  "Maintainer": "Andre Leite <leite@castlab.org>",
  "MD5sum": "aa242309d345c9068e9ed5ca78ef74b1",
  "_user": "strategicprojects",
  "_type": "src",
  "_file": "comexr_0.3.1.tar.gz",
  "_fileid": "36e8c7fbd4b2213f65a5ba9da4148d7cd09ea861fa8743a04219aa405ffffcf7",
  "_filesize": 215883,
  "_sha256": "36e8c7fbd4b2213f65a5ba9da4148d7cd09ea861fa8743a04219aa405ffffcf7",
  "_created": "2026-06-02T14:53:48.000Z",
  "_published": "2026-06-02T14:56:45.165Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 79100943238,
      "time": 135,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7361376307"
    },
    {
      "job": 79100943252,
      "time": 119,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7361369136"
    },
    {
      "job": 79100943191,
      "time": 113,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7361366166"
    },
    {
      "job": 79100943215,
      "time": 89,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7361355833"
    },
    {
      "job": 79100242712,
      "time": 184,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7361313445"
    },
    {
      "job": 79100942996,
      "time": 118,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7361369129"
    },
    {
      "job": 79100943546,
      "time": 78,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7361350577"
    },
    {
      "job": 79100943105,
      "time": 84,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7361353472"
    },
    {
      "job": 79100943460,
      "time": 82,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7361353207"
    }
  ],
  "_buildurl": "https://github.com/r-universe/strategicprojects/actions/runs/26827785270",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/strategicprojects/comexr",
  "_commit": {
    "id": "2b811bbf2bac58506b5b6ec07e44db5d98fab379",
    "author": "André Leite <leite@de.ufpe.br>",
    "committer": "André Leite <leite@de.ufpe.br>",
    "message": "Document configurable timeout/retry options in CLAUDE.md\n\nCo-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>\n",
    "time": 1780409917
  },
  "_maintainer": {
    "name": "Andre Leite",
    "email": "leite@castlab.org"
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 4.1.0",
      "role": "Depends"
    },
    {
      "package": "httr2",
      "version": ">= 1.0.0",
      "role": "Imports"
    },
    {
      "package": "cli",
      "version": ">= 3.6.0",
      "role": "Imports"
    },
    {
      "package": "testthat",
      "version": ">= 3.0.0",
      "role": "Suggests"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "tibble",
      "role": "Suggests"
    }
  ],
  "_owner": "strategicprojects",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2026-08",
      "n": 2
    },
    {
      "week": "2026-09",
      "n": 6
    },
    {
      "week": "2026-10",
      "n": 1
    },
    {
      "week": "2026-11",
      "n": 7
    },
    {
      "week": "2026-21",
      "n": 3
    },
    {
      "week": "2026-23",
      "n": 3
    }
  ],
  "_tags": [],
  "_stars": 0,
  "_contributors": [
    {
      "user": "milkway",
      "count": 22,
      "uuid": 7375849
    },
    {
      "user": "mattwigway",
      "count": 1,
      "uuid": 566958
    }
  ],
  "_userbio": {
    "uuid": 127886513,
    "type": "organization",
    "name": "Projetos Estratégicos",
    "description": "Repositório de código da Assessoria Especial de Projetos Estratégicos."
  },
  "_downloads": {
    "count": 256,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/comexr"
  },
  "_devurl": "https://github.com/strategicprojects/comexr",
  "_pkgdown": "https://strategicprojects.github.io/comexr/",
  "_searchresults": 21,
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/comexr.html",
    "extra/contents.json",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "manual.pdf"
  ],
  "_homeurl": "https://github.com/strategicprojects/comexr",
  "_realowner": "strategicprojects",
  "_cranurl": true,
  "_releases": [
    {
      "version": "0.2.0",
      "date": "2026-03-10"
    },
    {
      "version": "0.2.1",
      "date": "2026-03-17"
    },
    {
      "version": "0.3.0",
      "date": "2026-05-21"
    }
  ],
  "_exports": [
    "comex_available_years",
    "comex_blocs",
    "comex_cgce",
    "comex_cities",
    "comex_city_detail",
    "comex_countries",
    "comex_country_detail",
    "comex_customs_unit_detail",
    "comex_customs_units",
    "comex_details",
    "comex_export",
    "comex_filter_values",
    "comex_filters",
    "comex_historical",
    "comex_hs",
    "comex_import",
    "comex_isic",
    "comex_last_update",
    "comex_metrics",
    "comex_nbm",
    "comex_nbm_detail",
    "comex_ncm",
    "comex_ncm_detail",
    "comex_query",
    "comex_query_city",
    "comex_sitc",
    "comex_state_detail",
    "comex_states",
    "comex_transport_mode_detail",
    "comex_transport_modes"
  ],
  "_help": [
    {
      "page": "comex_available_years",
      "title": "Get available years for queries",
      "topics": [
        "comex_available_years"
      ]
    },
    {
      "page": "comex_blocs",
      "title": "Get economic blocs table",
      "topics": [
        "comex_blocs"
      ]
    },
    {
      "page": "comex_cgce",
      "title": "Get CGCE (Classification by Broad Economic Categories) table",
      "topics": [
        "comex_cgce"
      ]
    },
    {
      "page": "comex_cities",
      "title": "Get Brazilian cities table",
      "topics": [
        "comex_cities"
      ]
    },
    {
      "page": "comex_city_detail",
      "title": "Get city details",
      "topics": [
        "comex_city_detail"
      ]
    },
    {
      "page": "comex_countries",
      "title": "Get countries table",
      "topics": [
        "comex_countries"
      ]
    },
    {
      "page": "comex_country_detail",
      "title": "Get country details",
      "topics": [
        "comex_country_detail"
      ]
    },
    {
      "page": "comex_customs_unit_detail",
      "title": "Get customs unit details",
      "topics": [
        "comex_customs_unit_detail"
      ]
    },
    {
      "page": "comex_customs_units",
      "title": "Get customs units (URF) table",
      "topics": [
        "comex_customs_units"
      ]
    },
    {
      "page": "comex_details",
      "title": "Get available detail/grouping fields",
      "topics": [
        "comex_details"
      ]
    },
    {
      "page": "comex_export",
      "title": "Query exports",
      "topics": [
        "comex_export"
      ]
    },
    {
      "page": "comex_filter_values",
      "title": "Get values for a specific filter",
      "topics": [
        "comex_filter_values"
      ]
    },
    {
      "page": "comex_filters",
      "title": "Get available filters",
      "topics": [
        "comex_filters"
      ]
    },
    {
      "page": "comex_historical",
      "title": "Query historical foreign trade data (1989-1996)",
      "topics": [
        "comex_historical"
      ]
    },
    {
      "page": "comex_hs",
      "title": "Get Harmonized System (HS) tables",
      "topics": [
        "comex_hs"
      ]
    },
    {
      "page": "comex_import",
      "title": "Query imports",
      "topics": [
        "comex_import"
      ]
    },
    {
      "page": "comex_isic",
      "title": "Get ISIC (International Standard Industrial Classification) values",
      "topics": [
        "comex_isic"
      ]
    },
    {
      "page": "comex_last_update",
      "title": "Get last data update date",
      "topics": [
        "comex_last_update"
      ]
    },
    {
      "page": "comex_metrics",
      "title": "Get available metrics",
      "topics": [
        "comex_metrics"
      ]
    },
    {
      "page": "comex_nbm",
      "title": "Get NBM (Brazilian Nomenclature of Goods) table",
      "topics": [
        "comex_nbm"
      ]
    },
    {
      "page": "comex_nbm_detail",
      "title": "Get NBM code details",
      "topics": [
        "comex_nbm_detail"
      ]
    },
    {
      "page": "comex_ncm",
      "title": "Get NCM (Mercosur Common Nomenclature) table",
      "topics": [
        "comex_ncm"
      ]
    },
    {
      "page": "comex_ncm_detail",
      "title": "Get NCM code details",
      "topics": [
        "comex_ncm_detail"
      ]
    },
    {
      "page": "comex_query",
      "title": "Query general foreign trade data",
      "topics": [
        "comex_query"
      ]
    },
    {
      "page": "comex_query_city",
      "title": "Query city-level foreign trade data",
      "topics": [
        "comex_query_city"
      ]
    },
    {
      "page": "comex_sitc",
      "title": "Get SITC/CUCI (Standard International Trade Classification) table",
      "topics": [
        "comex_sitc"
      ]
    },
    {
      "page": "comex_state_detail",
      "title": "Get state details",
      "topics": [
        "comex_state_detail"
      ]
    },
    {
      "page": "comex_states",
      "title": "Get Brazilian states (UF) table",
      "topics": [
        "comex_states"
      ]
    },
    {
      "page": "comex_transport_mode_detail",
      "title": "Get transport mode details",
      "topics": [
        "comex_transport_mode_detail"
      ]
    },
    {
      "page": "comex_transport_modes",
      "title": "Get transport modes table",
      "topics": [
        "comex_transport_modes"
      ]
    }
  ],
  "_pkglogo": "https://github.com/strategicprojects/comexr/raw/HEAD/man/figures/logo.svg",
  "_readme": "https://github.com/strategicprojects/comexr/raw/HEAD/README.md",
  "_rundeps": [
    "askpass",
    "cli",
    "curl",
    "glue",
    "httr2",
    "lifecycle",
    "magrittr",
    "openssl",
    "R6",
    "rappdirs",
    "rlang",
    "sys",
    "vctrs",
    "withr"
  ],
  "_vignettes": [
    {
      "source": "auxiliary-tables.Rmd",
      "filename": "auxiliary-tables.html",
      "title": "Auxiliary Tables & Lookups",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Countries and economic blocs",
        "Countries",
        "Economic blocs",
        "Geographic tables",
        "States (UF)",
        "Cities",
        "Transport modes",
        "Customs units (URF)",
        "Product nomenclatures",
        "NCM — Mercosur Common Nomenclature (1997–present)",
        "NBM — Brazilian Nomenclature of Goods (historical, 1989–1996)",
        "HS — Harmonized System",
        "Classification tables",
        "CGCE — Classification by Broad Economic Categories (BEC)",
        "SITC — Standard International Trade Classification (CUCI)",
        "ISIC — International Standard Industrial Classification",
        "Using table codes in queries",
        "Pagination",
        "Runtime discovery"
      ],
      "created": "2026-02-18 00:21:41",
      "modified": "2026-05-21 14:36:38",
      "commits": 3
    },
    {
      "source": "city-profile.Rmd",
      "filename": "city-profile.html",
      "title": "Building a city trade profile (replicating the ComexStat municipality page)",
      "engine": "knitr::rmarkdown",
      "headings": [
        "What the city endpoint exposes",
        "1. Headline totals (FOB and net weight)",
        "2. Top trading partners",
        "3. Top economic blocs",
        "4. Top products (HS4 / heading)",
        "5. Monthly time series",
        "6. Year-over-year comparison",
        "7. Cross-cutting query: top destinations by product",
        "Looking up the city code from a name",
        "Tips"
      ],
      "created": "2026-05-21 14:36:38",
      "modified": "2026-05-21 14:36:38",
      "commits": 1
    },
    {
      "source": "state-trade-profile.Rmd",
      "filename": "state-trade-profile.html",
      "title": "Full state trade profile (Pernambuco example)",
      "engine": "knitr::rmarkdown",
      "headings": [
        "1. Look up the state code",
        "2. Build the query parameters",
        "3. Fetch exports and imports",
        "4. Cast metrics and add a date column",
        "5. Monthly trade balance",
        "6. Top municipalities by flow",
        "7. Top products (HS4)",
        "8. Top trading partners (countries)",
        "9. Cross-cuts (country × product, city × product)",
        "10. Year-over-year comparison",
        "11. Adapt to any state"
      ],
      "created": "2026-05-21 14:59:42",
      "modified": "2026-05-21 14:59:42",
      "commits": 1
    },
    {
      "source": "getting-started.Rmd",
      "filename": "getting-started.html",
      "title": "Getting Started with comex",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Overview",
        "Installation",
        "Quick start",
        "1. Check what data is available",
        "2. Run a simple export query",
        "3. Add filters and multiple details",
        "4. Look up auxiliary tables",
        "Available detail names",
        "Language support",
        "Next steps"
      ],
      "created": "2026-02-18 00:21:41",
      "modified": "2026-05-21 14:36:38",
      "commits": 3
    },
    {
      "source": "querying-trade-data.Rmd",
      "filename": "querying-trade-data.html",
      "title": "Querying Trade Data",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Basic queries",
        "Exports by country",
        "Imports with CIF value",
        "Monthly breakdown",
        "Multiple grouping fields",
        "Applying filters",
        "The generic comex_query()",
        "City-level queries",
        "Historical data (1989–1996)",
        "Working with results",
        "Tips and best practices"
      ],
      "created": "2026-02-18 00:21:41",
      "modified": "2026-05-21 14:36:38",
      "commits": 3
    }
  ],
  "_score": 5.498310553789601,
  "_indexed": true,
  "_nocasepkg": "comexr",
  "_universes": [
    "strategicprojects"
  ],
  "_previous": "0.3.0",
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.3.1",
      "date": "2026-06-02T14:56:06.000Z",
      "distro": "noble",
      "commit": "2b811bbf2bac58506b5b6ec07e44db5d98fab379",
      "fileid": "f313b833604db7d3052f83ec931a9200df6f00eee243826ce1d81b9daf27425e",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/strategicprojects/actions/runs/26827785270"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.3.1",
      "date": "2026-06-02T14:55:51.000Z",
      "distro": "noble",
      "commit": "2b811bbf2bac58506b5b6ec07e44db5d98fab379",
      "fileid": "0fb665034afbecc71d36f4ac141df052cfda3cef4196966ad6da1c945b8a88e0",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/strategicprojects/actions/runs/26827785270"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.3.1",
      "date": "2026-06-02T14:55:45.000Z",
      "commit": "2b811bbf2bac58506b5b6ec07e44db5d98fab379",
      "fileid": "f9a6f4b8fcf50ad0a1ef06c56fcb33b3710910671156bf30b40451f54f08de07",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/strategicprojects/actions/runs/26827785270"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "0.3.1",
      "date": "2026-06-02T14:55:24.000Z",
      "commit": "2b811bbf2bac58506b5b6ec07e44db5d98fab379",
      "fileid": "21edfe9114f81712b3b01eddd970b677119bf3f04867706f7809ed05adb31209",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/strategicprojects/actions/runs/26827785270"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.3.1",
      "date": "2026-06-02T14:56:04.000Z",
      "commit": "2b811bbf2bac58506b5b6ec07e44db5d98fab379",
      "fileid": "e9258ed090837a0e102c973c3c526777a7c238f0822af950eb1e01298d10a2a0",
      "status": "success",
      "buildurl": "https://github.com/r-universe/strategicprojects/actions/runs/26827785270"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.3.1",
      "date": "2026-06-02T14:55:04.000Z",
      "commit": "2b811bbf2bac58506b5b6ec07e44db5d98fab379",
      "fileid": "309ca67677d4e438649c5b2dfda7f1ae55c602060f362154d3098f3301a605cf",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/strategicprojects/actions/runs/26827785270"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.3.1",
      "date": "2026-06-02T14:55:11.000Z",
      "commit": "2b811bbf2bac58506b5b6ec07e44db5d98fab379",
      "fileid": "1b368711847df6711fd83fd7843138f890fde8400176243b795a339576f1d20e",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/strategicprojects/actions/runs/26827785270"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "0.3.1",
      "date": "2026-06-02T14:55:10.000Z",
      "commit": "2b811bbf2bac58506b5b6ec07e44db5d98fab379",
      "fileid": "3c514307d63dd6c0ab04a81e5f5410ea48668546d89219d0a77e22a1012ec874",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/strategicprojects/actions/runs/26827785270"
    }
  ]
}