{
  "_id": "6a495339f6c47c441949ba71",
  "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\", \"Amorim\", 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-29 12:10:22 UTC",
  "RemoteUrl": "https://github.com/strategicprojects/comexr",
  "RemoteRef": "HEAD",
  "RemoteSha": "07815866661cb4193cc41c80b09d37d7554ce1e2",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-06-29 14:53:50 UTC",
    "User": "root"
  },
  "Author": "Andre Leite [aut, cre],\nMarcos Wasilew [aut],\nHugo Vasconcelos [aut],\nCarlos Amorim [aut],\nDiogo Bezerra [aut]",
  "Maintainer": "Andre Leite <leite@castlab.org>",
  "_user": "strategicprojects",
  "_type": "src",
  "_file": "comexr_0.3.1.tar.gz",
  "_fileid": "https://r2.ropensci.org/b82d6d2ca541192b6a7c51cf45a6911b3528791d8bfa63964a42b93832523df9",
  "_filesize": 248706,
  "_sha256": "b82d6d2ca541192b6a7c51cf45a6911b3528791d8bfa63964a42b93832523df9",
  "_expires": "2026-10-12T18:38:47.000Z",
  "_created": "2026-06-29T14:53:50.000Z",
  "_published": "2026-07-04T18:38:49.249Z",
  "_jobs": [
    {
      "job": 85157144515,
      "time": 131,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7955684444"
    },
    {
      "job": 85157144618,
      "time": 135,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "7955686438"
    },
    {
      "job": 85157144620,
      "time": 89,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7955664694"
    },
    {
      "job": 85157144415,
      "time": 93,
      "config": "macos-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "7955666891"
    },
    {
      "job": 85157144178,
      "time": 178,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "7955622285"
    },
    {
      "job": 85157144476,
      "time": 114,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7955676273"
    },
    {
      "job": 85157144407,
      "time": 93,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7955667114"
    },
    {
      "job": 85157144475,
      "time": 108,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7955673650"
    },
    {
      "job": 85157144460,
      "time": 67,
      "config": "windows-release",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "7955654872"
    }
  ],
  "_host": "GitHub-Actions",
  "_buildurl": "https://github.com/r-universe/strategicprojects/actions/runs/28380914957",
  "_status": "success",
  "_upstream": "https://github.com/strategicprojects/comexr",
  "_commit": {
    "id": "07815866661cb4193cc41c80b09d37d7554ce1e2",
    "author": "André Leite <leite@de.ufpe.br>",
    "committer": "André Leite <leite@de.ufpe.br>",
    "message": "docs: fix author name spelling Carlos Amorin -> Carlos Amorim\n\nMatch the author's GitHub profile (@cagaf). Email unchanged.\n\nCo-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>\n",
    "time": 1782735022
  },
  "_maintainer": {
    "name": "Andre Leite",
    "email": "leite@castlab.org"
  },
  "_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
    }
  ],
  "_tags": [],
  "_stars": 0,
  "_contributors": [
    {
      "user": "milkway",
      "count": 24,
      "uuid": 7375849
    },
    {
      "user": "mattwigway",
      "count": 1,
      "uuid": 566958
    }
  ],
  "_userbio": {
    "uuid": 127886513,
    "type": "organization",
    "name": "Projetos Estratégicos",
    "followers": 4,
    "description": "Repositório de código da Assessoria Especial de Projetos Estratégicos."
  },
  "_downloads": {
    "count": 456,
    "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/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "LICENSE",
    "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.778151250383644,
  "_indexed": true,
  "_nocasepkg": "comexr",
  "_universes": [
    "strategicprojects"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.3.1",
      "date": "2026-06-29T14:56:01.000Z",
      "distro": "resolute",
      "commit": "07815866661cb4193cc41c80b09d37d7554ce1e2",
      "fileid": "https://r2.ropensci.org/45873e43ad362555cb042cc596fcfe47d1ccc606a675ef81b795f5b8676c6868",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/strategicprojects/actions/runs/28380914957"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "0.3.1",
      "date": "2026-06-29T14:56:05.000Z",
      "distro": "resolute",
      "commit": "07815866661cb4193cc41c80b09d37d7554ce1e2",
      "fileid": "https://r2.ropensci.org/09c219373f52f30849dea755e539d6e826e9e103958a7f7c48a86ed669824231",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/strategicprojects/actions/runs/28380914957"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.3.1",
      "date": "2026-06-29T14:55:21.000Z",
      "commit": "07815866661cb4193cc41c80b09d37d7554ce1e2",
      "fileid": "https://r2.ropensci.org/6e1a9e7ed90593036948497293ab0b3f41e42b01dc0636098c38fc42223188f0",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/strategicprojects/actions/runs/28380914957"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "0.3.1",
      "date": "2026-06-29T14:55:23.000Z",
      "commit": "07815866661cb4193cc41c80b09d37d7554ce1e2",
      "fileid": "https://r2.ropensci.org/6990e5e9144978a93f74eb3e8e18ae1d10e8d794fa85e583287f04ffdc1548f8",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/strategicprojects/actions/runs/28380914957"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.3.1",
      "date": "2026-06-29T14:55:57.000Z",
      "commit": "07815866661cb4193cc41c80b09d37d7554ce1e2",
      "fileid": "https://r2.ropensci.org/a3dccef7c01a614619af6ebf354ac526f27d833f4b80867ac78f3dd290a28fc4",
      "status": "success",
      "buildurl": "https://github.com/r-universe/strategicprojects/actions/runs/28380914957"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.3.1",
      "date": "2026-06-29T14:55:18.000Z",
      "commit": "07815866661cb4193cc41c80b09d37d7554ce1e2",
      "fileid": "https://r2.ropensci.org/a7f83999b9ed7b90a7b9b2f7cacb32974ca548856bdc49d7590223939545f094",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/strategicprojects/actions/runs/28380914957"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.3.1",
      "date": "2026-06-29T14:55:32.000Z",
      "commit": "07815866661cb4193cc41c80b09d37d7554ce1e2",
      "fileid": "https://r2.ropensci.org/cd029f0dcf8b694ff92401858807193d79a7aac5e88981d54f9c6d89e49117e6",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/strategicprojects/actions/runs/28380914957"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "0.3.1",
      "date": "2026-06-29T14:54:54.000Z",
      "commit": "07815866661cb4193cc41c80b09d37d7554ce1e2",
      "fileid": "https://r2.ropensci.org/cf0b26ded0c251fcff8fb78dd3c4543f1bc8637ac7a7a37c927d29449c745f6d",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/strategicprojects/actions/runs/28380914957"
    }
  ]
}