{
  "_id": "6abbf08b99f7aa8c6aa495f3",
  "Package": "comexr",
  "Title": "Client for the Brazilian Foreign Trade Statistics API\n('ComexStat')",
  "Version": "0.4.0",
  "Date": "2026-09-28",
  "Authors@R": "c(\nperson(\"André\", \"Leite\", email = \"leite@castlab.org\", role = c(\"aut\", \"cre\"),\ncomment = c(ORCID = \"0000-0002-4718-9766\")),\nperson(\"Marcos\", \"Wasiliew\", email = \"marcos.wasiliew@gmail.com\", role = \"aut\",\ncomment = c(ORCID = \"0009-0004-4694-3159\")),\nperson(\"Hugo\", \"Vasconcelos\", email = \"hugo.vasconcelos@ufpe.br\", role = \"aut\",\ncomment = c(ORCID = \"0000-0001-6249-0920\")),\nperson(\"Carlos\", \"Amorim\", email = \"carlos.agaf@ufpe.br\", role = \"aut\",\ncomment = c(ORCID = \"0000-0001-6315-8305\")),\nperson(\"Diogo\", \"Bezerra\", email = \"diogo.bezerra@ufpe.br\", role = \"aut\",\ncomment = c(ORCID = \"0000-0002-1216-8674\")),\nperson(\"Júlia\", \"Nascimento Barreto\", email = \"juliabarreto@gd.seplag.pe.gov.br\", role = \"aut\",\ncomment = c(ORCID = \"0009-0004-2851-7770\")))",
  "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-09-29 14:26:52 UTC",
  "RemoteUrl": "https://github.com/strategicprojects/comexr",
  "RemoteRef": "HEAD",
  "RemoteSha": "bd3bc11b6752dc72d166d204be1539d6391be542",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-09-29 16:11:35 UTC",
    "User": "root"
  },
  "Author": "André Leite [aut, cre] (ORCID: <https://orcid.org/0000-0002-4718-9766>),\nMarcos Wasiliew [aut] (ORCID: <https://orcid.org/0009-0004-4694-3159>),\nHugo Vasconcelos [aut] (ORCID: <https://orcid.org/0000-0001-6249-0920>),\nCarlos Amorim [aut] (ORCID: <https://orcid.org/0000-0001-6315-8305>),\nDiogo Bezerra [aut] (ORCID: <https://orcid.org/0000-0002-1216-8674>),\nJúlia Nascimento Barreto [aut] (ORCID:\n<https://orcid.org/0009-0004-2851-7770>)",
  "Maintainer": "André Leite <leite@castlab.org>",
  "_user": "strategicprojects",
  "_type": "src",
  "_file": "comexr_0.4.0.tar.gz",
  "_fileid": "https://r2.ropensci.org/fece637d2697f3809219d8a1ef1ee60b6626af6d423e747212c5df5b9412f1d6",
  "_filesize": 256392,
  "_sha256": "fece637d2697f3809219d8a1ef1ee60b6626af6d423e747212c5df5b9412f1d6",
  "_expires": "2027-01-07T17:08:24.000Z",
  "_created": "2026-09-29T16:11:35.000Z",
  "_published": "2026-09-29T17:08:27.798Z",
  "_jobs": [
    {
      "job": 109500813570,
      "time": 157,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "11045339724"
    },
    {
      "job": 109500813662,
      "time": 127,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11045134506"
    },
    {
      "job": 109500813760,
      "time": 92,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "11050490779"
    },
    {
      "job": 109500813485,
      "time": 102,
      "config": "macos-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11049946345"
    },
    {
      "job": 109499132809,
      "time": 235,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11045652074"
    },
    {
      "job": 109500813659,
      "time": 137,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "11046053091"
    },
    {
      "job": 109500813658,
      "time": 96,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "11045384401"
    },
    {
      "job": 109500813644,
      "time": 87,
      "config": "windows-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "11046411525"
    },
    {
      "job": 109500813740,
      "time": 70,
      "config": "windows-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11045119340"
    }
  ],
  "_host": "GitHub-Actions",
  "_buildurl": "https://github.com/r-universe/strategicprojects/actions/runs/36595438210",
  "_status": "success",
  "_upstream": "https://github.com/strategicprojects/comexr",
  "_commit": {
    "id": "bd3bc11b6752dc72d166d204be1539d6391be542",
    "author": "André Leite <leite@de.ufpe.br>",
    "committer": "André Leite <leite@de.ufpe.br>",
    "message": "Add ORCID identifiers for the authors\n\nCo-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>\n",
    "time": 1790692012
  },
  "_maintainer": {
    "name": "André Leite",
    "email": "leite@castlab.org",
    "orcid": "0000-0002-4718-9766"
  },
  "_distro": "resolute",
  "_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
    },
    {
      "week": "2026-24",
      "n": 1
    },
    {
      "week": "2026-27",
      "n": 1
    },
    {
      "week": "2026-40",
      "n": 5
    }
  ],
  "_tags": [],
  "_stars": 0,
  "_contributors": [
    {
      "user": "milkway",
      "count": 29,
      "uuid": 7375849
    },
    {
      "user": "mattwigway",
      "count": 1,
      "uuid": 566958
    }
  ],
  "_userbio": {
    "uuid": 127886513,
    "type": "organization",
    "name": "Projetos Estratégicos",
    "followers": 14,
    "description": "Repositório de código da Assessoria Especial de Projetos Estratégicos."
  },
  "_downloads": {
    "count": 372,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/comexr"
  },
  "_devurl": "https://github.com/strategicprojects/comexr",
  "_pkgdown": "https://strategicprojects.github.io/comexr/",
  "_searchresults": 30,
  "_rbuild": "4.6.1",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/comexr.html",
    "extra/contents.json",
    "extra/manual.pdf",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "LICENSE"
  ],
  "_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"
    },
    {
      "version": "0.4.0",
      "date": "2026-09-28"
    }
  ],
  "_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",
    "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-09-28 19:58:39",
      "commits": 2
    },
    {
      "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-09-28 19:58:39",
      "commits": 2
    },
    {
      "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-09-28 19:58:39",
      "commits": 4
    }
  ],
  "_score": 5.829303772831025,
  "_indexed": true,
  "_nocasepkg": "comexr",
  "_universes": [
    "strategicprojects"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.4.0",
      "date": "2026-09-29T16:16:00.000Z",
      "distro": "resolute",
      "commit": "bd3bc11b6752dc72d166d204be1539d6391be542",
      "fileid": "https://r2.ropensci.org/6b4ead84857caabc7c18476a83a86a98e8d502eda013b6f5c3f0340d75ec3574",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/strategicprojects/actions/runs/36595438210"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "0.4.0",
      "date": "2026-09-29T16:15:37.000Z",
      "distro": "resolute",
      "commit": "bd3bc11b6752dc72d166d204be1539d6391be542",
      "fileid": "https://r2.ropensci.org/be327aa681b7a9eae4122a363a1180c4142e7be09adee06eff581b885c9fc55c",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/strategicprojects/actions/runs/36595438210"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.4.0",
      "date": "2026-09-29T17:07:42.000Z",
      "commit": "bd3bc11b6752dc72d166d204be1539d6391be542",
      "fileid": "https://r2.ropensci.org/8df2f43796a979b0b5224c5436bde5507e5c5bbc53483f18f64540fe5f8e6f37",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/strategicprojects/actions/runs/36595438210"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "0.4.0",
      "date": "2026-09-29T17:06:28.000Z",
      "commit": "bd3bc11b6752dc72d166d204be1539d6391be542",
      "fileid": "https://r2.ropensci.org/3da77d40da7f2163e06babb5102c255aa8d3a64503554562e273bdf0bdcba6e5",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/strategicprojects/actions/runs/36595438210"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.4.0",
      "date": "2026-09-29T16:16:02.000Z",
      "commit": "bd3bc11b6752dc72d166d204be1539d6391be542",
      "fileid": "https://r2.ropensci.org/a9c9bdd04325fb0fabfdbf38854ef3e0c0c7f69a766687b6d03d23493edd4e0e",
      "status": "success",
      "buildurl": "https://github.com/r-universe/strategicprojects/actions/runs/36595438210"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.4.0",
      "date": "2026-09-29T16:14:35.000Z",
      "commit": "bd3bc11b6752dc72d166d204be1539d6391be542",
      "fileid": "https://r2.ropensci.org/0b278f32323cf273b29dd0fc5383401aad511cdee047d6ea350e195cbc390cfe",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/strategicprojects/actions/runs/36595438210"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.4.0",
      "date": "2026-09-29T16:14:43.000Z",
      "commit": "bd3bc11b6752dc72d166d204be1539d6391be542",
      "fileid": "https://r2.ropensci.org/d93a272531fb6da4bf5c0c4e31bfaef98c77c7786fd25946f24c9403ae1a1e99",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/strategicprojects/actions/runs/36595438210"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "0.4.0",
      "date": "2026-09-29T16:14:28.000Z",
      "commit": "bd3bc11b6752dc72d166d204be1539d6391be542",
      "fileid": "https://r2.ropensci.org/5616a07bb3b50fe8aac8eb4dcac9b5d1a7d672d809dbbf525b11c6d5602f21ac",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/strategicprojects/actions/runs/36595438210"
    }
  ]
}