{
  "_id": "69be5734a485b674afdcbeea",
  "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-03-21 08:25:24 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": "72f401bc1898fbf3a4c18a40bf98cda3",
  "_user": "ropensci",
  "_type": "src",
  "_file": "tradestatistics_5.0.0.tar.gz",
  "_fileid": "cc732195d358f77af3e072e78a922d338bfe570e94cedb797b48ed9fc898cbe1",
  "_filesize": 501246,
  "_sha256": "cc732195d358f77af3e072e78a922d338bfe570e94cedb797b48ed9fc898cbe1",
  "_created": "2026-03-21T08:25:24.000Z",
  "_published": "2026-03-21T17:42:54.270Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 68007294486,
      "time": 129,
      "config": "linux-devel-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "6038236170"
    },
    {
      "job": 68007294494,
      "time": 129,
      "config": "linux-release-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "6038236136"
    },
    {
      "job": 68007294474,
      "time": 86,
      "config": "macos-devel-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "6038232879"
    },
    {
      "job": 68007294476,
      "time": 107,
      "config": "macos-release-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "6038234378"
    },
    {
      "job": 68007158874,
      "time": 154,
      "config": "pkgdown",
      "r": "4.5.2",
      "check": "OK",
      "artifact": "6038222337"
    },
    {
      "job": 68007158891,
      "time": 206,
      "config": "source",
      "r": "4.5.2",
      "check": "OK",
      "artifact": "6038226284"
    },
    {
      "job": 68007294473,
      "time": 124,
      "config": "wasm-release",
      "r": "4.5.1",
      "check": "OK",
      "artifact": "6038235720"
    },
    {
      "job": 68007294490,
      "time": 72,
      "config": "windows-devel",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "6038231944"
    },
    {
      "job": 68007294497,
      "time": 275,
      "config": "windows-oldrel",
      "r": "4.4.3",
      "check": "OK",
      "artifact": "6038246267"
    },
    {
      "job": 68007294503,
      "time": 71,
      "config": "windows-release",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "6038231919"
    }
  ],
  "_buildurl": "https://github.com/r-universe/ropensci/actions/runs/23375657530",
  "_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",
    "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": 79,
  "_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",
    "description": "Tools and R Packages for Open Science"
  },
  "_downloads": {
    "count": 327,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/tradestatistics"
  },
  "_devurl": "https://github.com/ropensci/tradestatistics",
  "_pkgdown": "https://docs.ropensci.org/tradestatistics/",
  "_searchresults": 57,
  "_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.5.2",
  "_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": 6.9545319426269145,
  "_indexed": true,
  "_nocasepkg": "tradestatistics",
  "_universes": [
    "ropensci",
    "pachadotdev"
  ],
  "_binaries": [
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "5.0.0",
      "date": "2026-03-21T08:27:35.000Z",
      "distro": "noble",
      "commit": "4c0b85989f0085f4eb4c16eaefab6214b7854b6b",
      "fileid": "f554f92f8fc145327bc7f86cb4bba413a566d54b9dff13f1247a423fe774fa01",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/ropensci/actions/runs/23375657530"
    },
    {
      "r": "4.5.3",
      "os": "linux",
      "version": "5.0.0",
      "date": "2026-03-21T08:27:35.000Z",
      "distro": "noble",
      "commit": "4c0b85989f0085f4eb4c16eaefab6214b7854b6b",
      "fileid": "bfccc3880395b6cf545b4d17519bc989aab234a045af3b784909f8acd7c81739",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/ropensci/actions/runs/23375657530"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "5.0.0",
      "date": "2026-03-21T08:26:57.000Z",
      "commit": "4c0b85989f0085f4eb4c16eaefab6214b7854b6b",
      "fileid": "daa12a5c33bbc18bafb1b51e82392db63598f425228613e42ff6fffab72689d0",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/ropensci/actions/runs/23375657530"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "5.0.0",
      "date": "2026-03-21T08:27:12.000Z",
      "commit": "4c0b85989f0085f4eb4c16eaefab6214b7854b6b",
      "fileid": "3926ee495c36ba843406930e9efc953c51fa1f0ea5e1dbbaba8cb77f8530f24b",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/ropensci/actions/runs/23375657530"
    },
    {
      "r": "4.5.1",
      "os": "wasm",
      "version": "5.0.0",
      "date": "2026-03-21T08:27:44.000Z",
      "commit": "4c0b85989f0085f4eb4c16eaefab6214b7854b6b",
      "fileid": "2c25b72c8f42818b9f9895159e563bab520199979aa29bef870061484f99ea72",
      "status": "success",
      "buildurl": "https://github.com/r-universe/ropensci/actions/runs/23375657530"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "5.0.0",
      "date": "2026-03-21T08:26:35.000Z",
      "commit": "4c0b85989f0085f4eb4c16eaefab6214b7854b6b",
      "fileid": "bc176d2bd51f6f3037dd7e2243c5510604c0ac7b9141d9ea587d3325802ae742",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/ropensci/actions/runs/23375657530"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "5.0.0",
      "date": "2026-03-21T08:26:34.000Z",
      "commit": "4c0b85989f0085f4eb4c16eaefab6214b7854b6b",
      "fileid": "7c72fd449561821ad5ca41378b815b7076cc6029a1c536c0ae62edd89f3f0f92",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/ropensci/actions/runs/23375657530"
    }
  ]
}