{
  "_id": "6a34fdf33efcd9bda43d5697",
  "Type": "Package",
  "Package": "tradestatistics",
  "Title": "Open Trade Statistics API Wrapper and Utility Program",
  "Version": "5.0.0",
  "Authors@R": "c(\nperson(\"Mauricio\", \"Vargas\", , \"mavargas11@uc.cl\", role = c(\"aut\", \"cre\", \"cph\"),\ncomment = c(ORCID = \"0000-0003-1017-7574\")),\nperson(\"Joshua\", \"Kunst\", role = \"ctb\",\ncomment = \"contributed to different parts of the pre-release code\"),\nperson(\"Alexey\", \"Kravchenko\", role = \"ctb\",\ncomment = \"reviewed 2021 version of the API\"),\nperson(\"Emma\", \"Mendelsohn\", role = \"ctb\",\ncomment = \"updated the functions to take available years from the API instead of hardcoded values\"),\nperson(\"Daniela\", \"de los Santos\", role = \"ctb\",\ncomment = \"proposed improvements to default parameters\"),\nperson(\"Emily\", \"Riederer\", role = \"rev\",\ncomment = \"reviewed the package for rOpenSci, see https://github.com/ropensci/onboarding/issues/274\"),\nperson(\"Mark\", \"Padgham\", role = \"rev\",\ncomment = \"reviewed the package for rOpenSci, see https://github.com/ropensci/onboarding/issues/274\"),\nperson(\"Amanda\", \"Dobbyn\", role = \"rev\",\ncomment = \"reviewed a previous package that evolved into the current package for rOpenSci, see https://github.com/ropensci/onboarding/issues/217\"),\nperson(\"Jorge\", \"Cimentada\", role = \"rev\",\ncomment = \"reviewed a previous package that evolved into the current package for rOpenSci, see https://github.com/ropensci/onboarding/issues/217\"),\nperson(, \"UN Comtrade\", role = \"dtc\"),\nperson(, \"The World Bank\", role = \"dtc\")\n)",
  "Description": "Access 'Open Trade Statistics' API from R to download\ninternational trade data.",
  "License": "Apache License (>= 2)",
  "URL": "https://docs.ropensci.org/tradestatistics/",
  "BugReports": "https://github.com/ropensci/tradestatistics/issues/",
  "VignetteBuilder": "knitr",
  "Encoding": "UTF-8",
  "LazyData": "TRUE",
  "RoxygenNote": "7.3.1",
  "Config/pak/sysreqs": "libssl-dev",
  "Repository": "https://ropensci.r-universe.dev",
  "Date/Publication": "2024-08-23 12:21:21 UTC",
  "RemoteUrl": "https://github.com/ropensci/tradestatistics",
  "RemoteRef": "master",
  "RemoteSha": "4c0b85989f0085f4eb4c16eaefab6214b7854b6b",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-06-19 08:25:39 UTC",
    "User": "root"
  },
  "Author": "Mauricio Vargas [aut, cre, cph] (ORCID:\n<https://orcid.org/0000-0003-1017-7574>),\nJoshua Kunst [ctb] (contributed to different parts of the pre-release\ncode),\nAlexey Kravchenko [ctb] (reviewed 2021 version of the API),\nEmma Mendelsohn [ctb] (updated the functions to take available years\nfrom the API instead of hardcoded values),\nDaniela de los Santos [ctb] (proposed improvements to default\nparameters),\nEmily Riederer [rev] (reviewed the package for rOpenSci, see\nhttps://github.com/ropensci/onboarding/issues/274),\nMark Padgham [rev] (reviewed the package for rOpenSci, see\nhttps://github.com/ropensci/onboarding/issues/274),\nAmanda Dobbyn [rev] (reviewed a previous package that evolved into the\ncurrent package for rOpenSci, see\nhttps://github.com/ropensci/onboarding/issues/217),\nJorge Cimentada [rev] (reviewed a previous package that evolved into\nthe current package for rOpenSci, see\nhttps://github.com/ropensci/onboarding/issues/217),\nUN Comtrade [dtc],\nThe World Bank [dtc]",
  "Maintainer": "Mauricio Vargas <mavargas11@uc.cl>",
  "MD5sum": "d7cef5d519b675c8c97ce9e80bfe4300",
  "_user": "ropensci",
  "_type": "src",
  "_file": "tradestatistics_5.0.0.tar.gz",
  "_fileid": "4089b6691f785ce3b0b55464ded363cbda0326364f92b9e861ce9365bc6f19bd",
  "_filesize": 503244,
  "_sha256": "4089b6691f785ce3b0b55464ded363cbda0326364f92b9e861ce9365bc6f19bd",
  "_created": "2026-06-19T08:25:39.000Z",
  "_published": "2026-06-19T08:29:39.121Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 82312413097,
      "time": 204,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7745148437"
    },
    {
      "job": 82312413138,
      "time": 199,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7745147017"
    },
    {
      "job": 82312413119,
      "time": 117,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7745121486"
    },
    {
      "job": 82312413092,
      "time": 92,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7745113584"
    },
    {
      "job": 82311959916,
      "time": 214,
      "config": "pkgdown",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7745093957"
    },
    {
      "job": 82311959890,
      "time": 182,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7745084880"
    },
    {
      "job": 82312413095,
      "time": 109,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7745118880"
    },
    {
      "job": 82312413123,
      "time": 92,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7745113621"
    },
    {
      "job": 82312413135,
      "time": 75,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7745108658"
    },
    {
      "job": 82312413141,
      "time": 81,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7745110888"
    }
  ],
  "_buildurl": "https://github.com/r-universe/ropensci/actions/runs/27814392879",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/ropensci/tradestatistics",
  "_commit": {
    "id": "4c0b85989f0085f4eb4c16eaefab6214b7854b6b",
    "author": "Mauricio \"Pachá\" Vargas Sepúlveda <mavargas11@uc.cl>",
    "committer": "GitHub <noreply@github.com>",
    "message": "Merge pull request #77 from pachadotdev/master\n\nremove DO logo",
    "time": 1724415681
  },
  "_maintainer": {
    "name": "Mauricio Vargas",
    "email": "mavargas11@uc.cl",
    "login": "pachadotdev",
    "orcid": "0000-0003-1017-7574",
    "description": "Statistician interested in applying statistical methods to address specific policy-relevant questions, particularly in international trade.",
    "uuid": 10091065
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 2.10",
      "role": "Depends"
    },
    {
      "package": "crul",
      "role": "Imports"
    },
    {
      "package": "data.table",
      "role": "Imports"
    },
    {
      "package": "digest",
      "role": "Imports"
    },
    {
      "package": "jsonlite",
      "role": "Imports"
    },
    {
      "package": "memoise",
      "role": "Imports"
    },
    {
      "package": "utils",
      "role": "Imports"
    },
    {
      "package": "covr",
      "role": "Suggests"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "version": ">= 2.1.0",
      "role": "Suggests"
    },
    {
      "package": "tibble",
      "role": "Suggests"
    },
    {
      "package": "vcr",
      "role": "Suggests"
    }
  ],
  "_owner": "ropensci",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [],
  "_tags": [],
  "_topics": [
    "api-wrapper",
    "data-table",
    "international-trade",
    "jsonlite",
    "open-trade-statistics"
  ],
  "_stars": 81,
  "_contributors": [
    {
      "user": "pachadotdev",
      "count": 86,
      "uuid": 10091065
    },
    {
      "user": "eliocamp",
      "count": 4,
      "uuid": 8617595
    },
    {
      "user": "emmamendelsohn",
      "count": 3,
      "uuid": 16726030
    },
    {
      "user": "jeroen",
      "count": 1,
      "uuid": 216319
    },
    {
      "user": "mpadge",
      "count": 1,
      "uuid": 6697851
    }
  ],
  "_userbio": {
    "uuid": 1200269,
    "type": "organization",
    "name": "rOpenSci",
    "followers": 1100,
    "description": "Tools and R Packages for Open Science"
  },
  "_downloads": {
    "count": 375,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/tradestatistics"
  },
  "_devurl": "https://github.com/ropensci/tradestatistics",
  "_pkgdown": "https://docs.ropensci.org/tradestatistics/",
  "_searchresults": 68,
  "_metadata": {
    "review": {
      "id": 274,
      "status": "reviewed",
      "version": "0.1",
      "organization": "rOpenSci Software Review",
      "url": "https://github.com/ropensci/software-review/issues/274"
    },
    "ropensci_category": "data-access"
  },
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "extra/tradestatistics.html",
    "manual.pdf"
  ],
  "_homeurl": "https://github.com/ropensci/tradestatistics",
  "_realowner": "ropensci",
  "_cranurl": true,
  "_releases": [
    {
      "version": "0.1",
      "date": "2019-04-06"
    },
    {
      "version": "0.2",
      "date": "2019-04-22"
    },
    {
      "version": "0.2.3",
      "date": "2019-08-28"
    },
    {
      "version": "0.2.4",
      "date": "2019-09-17"
    },
    {
      "version": "0.2.5",
      "date": "2019-09-19"
    },
    {
      "version": "0.2.7",
      "date": "2019-12-05"
    },
    {
      "version": "1.0",
      "date": "2020-04-03"
    },
    {
      "version": "1.1",
      "date": "2020-09-18"
    },
    {
      "version": "3.0.2",
      "date": "2022-03-01"
    },
    {
      "version": "4.4.0",
      "date": "2022-10-04"
    },
    {
      "version": "4.5.0",
      "date": "2023-06-30"
    },
    {
      "version": "5.0.0",
      "date": "2024-08-26"
    },
    {
      "version": "6.0.0",
      "date": "2025-09-22"
    }
  ],
  "_exports": [
    "ots_commodity_code",
    "ots_country_code",
    "ots_create_tidy_data",
    "ots_gdp_deflator_adjustment"
  ],
  "_datasets": [
    {
      "name": "ots_commodities",
      "title": "OTS Commodities",
      "object": "ots_commodities",
      "class": [
        "data.table",
        "data.frame"
      ],
      "fields": [
        "commodity_code",
        "commodity_code_short",
        "commodity_fullname_english",
        "section_code"
      ],
      "rows": 5302,
      "table": true,
      "tojson": true
    },
    {
      "name": "ots_commodities_short",
      "title": "OTS Commodities Short",
      "object": "ots_commodities_short",
      "class": [
        "data.table",
        "data.frame"
      ],
      "fields": [
        "commodity_code",
        "commodity_fullname_english"
      ],
      "rows": 1225,
      "table": true,
      "tojson": true
    },
    {
      "name": "ots_countries",
      "title": "OTS Countries",
      "object": "ots_countries",
      "class": [
        "data.table",
        "data.frame"
      ],
      "fields": [
        "country_iso",
        "country_name_english",
        "country_fullname_english",
        "continent_name_english",
        "continent_id"
      ],
      "rows": 275,
      "table": true,
      "tojson": true
    },
    {
      "name": "ots_countries_colors",
      "title": "OTS Countries Colors",
      "object": "ots_countries_colors",
      "class": [
        "data.table",
        "data.frame"
      ],
      "fields": [
        "country_iso",
        "continent_id",
        "country_color"
      ],
      "rows": 275,
      "table": true,
      "tojson": true
    },
    {
      "name": "ots_gdp_deflator",
      "title": "GDP Deflator",
      "object": "ots_gdp_deflator",
      "class": [
        "data.table",
        "data.frame"
      ],
      "fields": [
        "year_from",
        "year_to",
        "country_iso",
        "gdp_deflator"
      ],
      "rows": 8010,
      "table": true,
      "tojson": true
    },
    {
      "name": "ots_sections",
      "title": "OTS Sections",
      "object": "ots_sections",
      "class": [
        "data.table",
        "data.frame"
      ],
      "fields": [
        "section_code",
        "section_fullname_english"
      ],
      "rows": 22,
      "table": true,
      "tojson": true
    },
    {
      "name": "ots_sections_colors",
      "title": "OTS Sections Colors",
      "object": "ots_sections_colors",
      "class": [
        "data.table",
        "data.frame"
      ],
      "fields": [
        "section_code",
        "section_color"
      ],
      "rows": 22,
      "table": true,
      "tojson": true
    },
    {
      "name": "ots_tables",
      "title": "OTS Tables",
      "object": "ots_tables",
      "class": [
        "data.table",
        "data.frame"
      ],
      "fields": [
        "table",
        "description",
        "source"
      ],
      "rows": 12,
      "table": true,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "ots_commodities",
      "title": "OTS Commodities",
      "topics": [
        "ots_commodities"
      ]
    },
    {
      "page": "ots_commodities_short",
      "title": "OTS Commodities Short",
      "topics": [
        "ots_commodities_short"
      ]
    },
    {
      "page": "ots_commodity_code",
      "title": "String matching of official commodity/section names and Harmonized System (HS) codes according to the United Nations nomenclature",
      "topics": [
        "ots_commodity_code"
      ]
    },
    {
      "page": "ots_countries",
      "title": "OTS Countries",
      "topics": [
        "ots_countries"
      ]
    },
    {
      "page": "ots_countries_colors",
      "title": "OTS Countries Colors",
      "topics": [
        "ots_countries_colors"
      ]
    },
    {
      "page": "ots_country_code",
      "title": "String matching of official country names and ISO-3 codes according to the United Nations nomenclature",
      "topics": [
        "ots_country_code"
      ]
    },
    {
      "page": "ots_create_tidy_data",
      "title": "Downloads and processes the data from the API to return a human-readable tibble",
      "topics": [
        "ots_create_tidy_data"
      ]
    },
    {
      "page": "ots_gdp_deflator",
      "title": "GDP Deflator",
      "topics": [
        "ots_gdp_deflator"
      ]
    },
    {
      "page": "ots_gdp_deflator_adjustment",
      "title": "Expresses tidy data from the API in dollars of a reference year",
      "topics": [
        "ots_gdp_deflator_adjustment"
      ]
    },
    {
      "page": "ots_sections",
      "title": "OTS Sections",
      "topics": [
        "ots_sections"
      ]
    },
    {
      "page": "ots_sections_colors",
      "title": "OTS Sections Colors",
      "topics": [
        "ots_sections_colors"
      ]
    },
    {
      "page": "ots_tables",
      "title": "OTS Tables",
      "topics": [
        "ots_tables"
      ]
    }
  ],
  "_readme": "https://github.com/ropensci/tradestatistics/raw/master/README.md",
  "_rundeps": [
    "cachem",
    "cli",
    "crul",
    "curl",
    "data.table",
    "digest",
    "fastmap",
    "httpcode",
    "jsonlite",
    "lifecycle",
    "memoise",
    "mime",
    "R6",
    "Rcpp",
    "rlang",
    "triebeard",
    "urltools"
  ],
  "_vignettes": [
    {
      "source": "basic-usage.Rmd",
      "filename": "basic-usage.html",
      "title": "Basic usage",
      "author": "Mauricio Vargas S.",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Introduction",
        "Package data",
        "Available tables",
        "Country codes",
        "Commodity codes",
        "Inflation data",
        "Package functions",
        "Country code",
        "Commodity code",
        "Trade data",
        "Bilateral trade at commodity level (Year - Reporter - Partner - Commodity Code)",
        "Bilateral trade at aggregated level (Year - Reporter - Partner)",
        "Reporter trade at commodity level (Year - Reporter - Commodity Code)",
        "Reporter trade at aggregated level (Year - Reporter)",
        "Commodity trade at aggregated level (Year - Commodity Code)",
        "Inflation adjustment"
      ],
      "created": "2019-01-05 16:20:18",
      "modified": "2024-08-23 00:12:45",
      "commits": 28
    }
  ],
  "_score": 7.0420239272488665,
  "_indexed": true,
  "_nocasepkg": "tradestatistics",
  "_universes": [
    "ropensci",
    "pachadotdev"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "5.0.0",
      "date": "2026-06-19T08:28:59.000Z",
      "distro": "noble",
      "commit": "4c0b85989f0085f4eb4c16eaefab6214b7854b6b",
      "fileid": "9b3764e25fd16b5018e45b436dffc873e3f59e3adbaf9f9c4d6bcf9465ef1c34",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/ropensci/actions/runs/27814392879"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "5.0.0",
      "date": "2026-06-19T08:28:56.000Z",
      "distro": "noble",
      "commit": "4c0b85989f0085f4eb4c16eaefab6214b7854b6b",
      "fileid": "576b8400cf92ee9129ef6c6db276d0136676d6827a9c8596178145983dc15f44",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/ropensci/actions/runs/27814392879"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "5.0.0",
      "date": "2026-06-19T08:27:31.000Z",
      "commit": "4c0b85989f0085f4eb4c16eaefab6214b7854b6b",
      "fileid": "3be5fe85e5cd9a2d8aa177da6e7536102839a17feee4d2dc1a027a991840892f",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/ropensci/actions/runs/27814392879"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "5.0.0",
      "date": "2026-06-19T08:27:11.000Z",
      "commit": "4c0b85989f0085f4eb4c16eaefab6214b7854b6b",
      "fileid": "84fad6af29abc1fc58b82d3bca0fdccac7271856143117172974a7c2fbea5d34",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/ropensci/actions/runs/27814392879"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "5.0.0",
      "date": "2026-06-19T08:27:41.000Z",
      "commit": "4c0b85989f0085f4eb4c16eaefab6214b7854b6b",
      "fileid": "e8ef38cc696e7d9946f74ceb574d2ce330925f1571966f12c61092459a87f4f8",
      "status": "success",
      "buildurl": "https://github.com/r-universe/ropensci/actions/runs/27814392879"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "5.0.0",
      "date": "2026-06-19T08:27:00.000Z",
      "commit": "4c0b85989f0085f4eb4c16eaefab6214b7854b6b",
      "fileid": "82a9495fd75d46c7b1403c2b34382416186d6f1f29322ba8c974c0fd8714221c",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/ropensci/actions/runs/27814392879"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "5.0.0",
      "date": "2026-06-19T08:26:46.000Z",
      "commit": "4c0b85989f0085f4eb4c16eaefab6214b7854b6b",
      "fileid": "60a5aa8c43f22474c1d8f095274f7a80783eb98a6797ad64183959bbfb938bcd",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/ropensci/actions/runs/27814392879"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "5.0.0",
      "date": "2026-06-19T08:26:54.000Z",
      "commit": "4c0b85989f0085f4eb4c16eaefab6214b7854b6b",
      "fileid": "97d867c4a0b8407a5c9a7f418acb041ad9494389dbeb02c9fd3fe4bcacd32b09",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/ropensci/actions/runs/27814392879"
    }
  ]
}