{
  "_id": "6a1eda12b401979e7340f4ba",
  "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-05-20 09:14:49 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": "129c57862cef0af89f2aa0abc16aad3c",
  "_user": "ropensci",
  "_type": "src",
  "_file": "tradestatistics_5.0.0.tar.gz",
  "_fileid": "47cf12e1e8735e1c8e9cd27305f43bb89b82ee75f61063999a266efec6a18c9f",
  "_filesize": 504528,
  "_sha256": "47cf12e1e8735e1c8e9cd27305f43bb89b82ee75f61063999a266efec6a18c9f",
  "_created": "2026-05-20T09:14:49.000Z",
  "_published": "2026-06-02T13:26:42.219Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 79081330922,
      "time": 136,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7106011364"
    },
    {
      "job": 79081331448,
      "time": 131,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7106009566"
    },
    {
      "job": 79081331514,
      "time": 88,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7105992820"
    },
    {
      "job": 79081330971,
      "time": 112,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7106002090"
    },
    {
      "job": 79081330835,
      "time": 156,
      "config": "pkgdown",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7105944159"
    },
    {
      "job": 79081330721,
      "time": 193,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7105957821"
    },
    {
      "job": 79081330270,
      "time": 111,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7358973309"
    },
    {
      "job": 79081331395,
      "time": 83,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7105991121"
    },
    {
      "job": 79081331970,
      "time": 75,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7105988135"
    },
    {
      "job": 79081331648,
      "time": 93,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7105995054"
    }
  ],
  "_buildurl": "https://github.com/r-universe/ropensci/actions/runs/26152970515",
  "_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": 80,
  "_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": 257,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/tradestatistics"
  },
  "_devurl": "https://github.com/ropensci/tradestatistics",
  "_pkgdown": "https://docs.ropensci.org/tradestatistics/",
  "_searchresults": 66,
  "_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.023663918197794,
  "_indexed": true,
  "_nocasepkg": "tradestatistics",
  "_universes": [
    "ropensci",
    "pachadotdev"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "5.0.0",
      "date": "2026-05-20T09:17:06.000Z",
      "distro": "noble",
      "commit": "4c0b85989f0085f4eb4c16eaefab6214b7854b6b",
      "fileid": "095805d614192af3c21b5c9b8a8190fa83f28c0830484e545d21dfa907181212",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/ropensci/actions/runs/26152970515"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "5.0.0",
      "date": "2026-05-20T09:17:05.000Z",
      "distro": "noble",
      "commit": "4c0b85989f0085f4eb4c16eaefab6214b7854b6b",
      "fileid": "4012f6f25f0e1831ec1bdc87c1f0b6bb243f0fbf278fe31255308083ebb6f775",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/ropensci/actions/runs/26152970515"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "5.0.0",
      "date": "2026-05-20T09:16:24.000Z",
      "commit": "4c0b85989f0085f4eb4c16eaefab6214b7854b6b",
      "fileid": "f382d8fd2532c4d76a011f287777bca21729d88660360a5a71a5402cd578c33a",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/ropensci/actions/runs/26152970515"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "5.0.0",
      "date": "2026-05-20T09:16:45.000Z",
      "commit": "4c0b85989f0085f4eb4c16eaefab6214b7854b6b",
      "fileid": "ff794c727682346fc291ae3d68412300c8cd4386217ceff9ac0aeb369ac1b947",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/ropensci/actions/runs/26152970515"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "5.0.0",
      "date": "2026-05-20T09:16:10.000Z",
      "commit": "4c0b85989f0085f4eb4c16eaefab6214b7854b6b",
      "fileid": "93a9ac7c59492a098ce54fbed053c095e756569083ee5a0e5646382c4f44af9e",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/ropensci/actions/runs/26152970515"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "5.0.0",
      "date": "2026-05-20T09:16:04.000Z",
      "commit": "4c0b85989f0085f4eb4c16eaefab6214b7854b6b",
      "fileid": "7e61a91db59897412116ed2925e72d1c39362e0d46af0d7df3635f49a0b4a3b7",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/ropensci/actions/runs/26152970515"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "5.0.0",
      "date": "2026-05-20T09:16:19.000Z",
      "commit": "4c0b85989f0085f4eb4c16eaefab6214b7854b6b",
      "fileid": "326297fe90fa728c4645c76d649428ed70440501a3db65ebc2d6342c83c6d81d",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/ropensci/actions/runs/26152970515"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "5.0.0",
      "date": "2026-06-02T13:26:05.000Z",
      "commit": "4c0b85989f0085f4eb4c16eaefab6214b7854b6b",
      "fileid": "2bf187f2b3c454e5c8959f871f9d5a4d3bbd141260ab57f09eab5bb0f8af9e52",
      "status": "success",
      "buildurl": "https://github.com/r-universe/ropensci/actions/runs/26152970515"
    }
  ]
}