{
  "_id": "6a6c34893388593b7e8cc460",
  "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-07-31 05:25:34 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>",
  "_user": "ropensci",
  "_type": "src",
  "_file": "tradestatistics_5.0.0.tar.gz",
  "_fileid": "https://r2.ropensci.org/94097d20b9a83e3cfc4b4356ad5d73426d974fbfc4cf5a628159e21b0f097052",
  "_filesize": 502721,
  "_sha256": "94097d20b9a83e3cfc4b4356ad5d73426d974fbfc4cf5a628159e21b0f097052",
  "_expires": "2026-11-08T05:37:11.000Z",
  "_created": "2026-07-31T05:25:34.000Z",
  "_published": "2026-07-31T05:37:13.133Z",
  "_jobs": [
    {
      "job": 91080585666,
      "time": 152,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "8783920734"
    },
    {
      "job": 91080585645,
      "time": 167,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8783925040"
    },
    {
      "job": 91080585681,
      "time": 97,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "8784055128"
    },
    {
      "job": 91080585613,
      "time": 95,
      "config": "macos-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8784053767"
    },
    {
      "job": 91080092127,
      "time": 177,
      "config": "pkgdown",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "8783867042"
    },
    {
      "job": 91080092079,
      "time": 213,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8783877280"
    },
    {
      "job": 91080585604,
      "time": 112,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "8783911470"
    },
    {
      "job": 91080585664,
      "time": 67,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "8783896991"
    },
    {
      "job": 91080585662,
      "time": 70,
      "config": "windows-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "8783899036"
    },
    {
      "job": 91080585665,
      "time": 70,
      "config": "windows-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8783898030"
    }
  ],
  "_host": "GitHub-Actions",
  "_buildurl": "https://github.com/r-universe/ropensci/actions/runs/30606587997",
  "_status": "success",
  "_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
  },
  "_distro": "resolute",
  "_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": 82,
  "_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": 1133,
    "description": "Tools and R Packages for Open Science"
  },
  "_downloads": {
    "count": 393,
    "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.1",
  "_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"
    },
    {
      "version": "7.0.0",
      "date": "2026-07-07"
    },
    {
      "version": "7.1.0",
      "date": "2026-07-21"
    }
  ],
  "_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.047352760753935,
  "_indexed": true,
  "_nocasepkg": "tradestatistics",
  "_universes": [
    "ropensci",
    "pachadotdev"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "5.0.0",
      "date": "2026-07-31T05:28:08.000Z",
      "distro": "resolute",
      "commit": "4c0b85989f0085f4eb4c16eaefab6214b7854b6b",
      "fileid": "https://r2.ropensci.org/dbf72d84b18f6d2bed9293448485dc21b8e8e91868048c0fd587bc185b22c9fa",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/ropensci/actions/runs/30606587997"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "5.0.0",
      "date": "2026-07-31T05:28:22.000Z",
      "distro": "resolute",
      "commit": "4c0b85989f0085f4eb4c16eaefab6214b7854b6b",
      "fileid": "https://r2.ropensci.org/22eb4fffbd3ec90f72d58f2ecc8e83dc8814c212e344dbea8d778f9408a97947",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/ropensci/actions/runs/30606587997"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "5.0.0",
      "date": "2026-07-31T05:36:20.000Z",
      "commit": "4c0b85989f0085f4eb4c16eaefab6214b7854b6b",
      "fileid": "https://r2.ropensci.org/7a367b04d35ea3f53067d6f0aff5f88a37403c1c6a0e4c8ad82da907c77b172e",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/ropensci/actions/runs/30606587997"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "5.0.0",
      "date": "2026-07-31T05:36:16.000Z",
      "commit": "4c0b85989f0085f4eb4c16eaefab6214b7854b6b",
      "fileid": "https://r2.ropensci.org/6327ebeb5d711f8c425cdc71da1677c06b6860082a88dad12d0f2f203fd5ed2b",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/ropensci/actions/runs/30606587997"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "5.0.0",
      "date": "2026-07-31T05:27:52.000Z",
      "commit": "4c0b85989f0085f4eb4c16eaefab6214b7854b6b",
      "fileid": "https://r2.ropensci.org/499c208f153f17409ef817e1b662dca609131548fb63f958bfdf491316848384",
      "status": "success",
      "buildurl": "https://github.com/r-universe/ropensci/actions/runs/30606587997"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "5.0.0",
      "date": "2026-07-31T05:26:38.000Z",
      "commit": "4c0b85989f0085f4eb4c16eaefab6214b7854b6b",
      "fileid": "https://r2.ropensci.org/7242aedefa28971776566c8e0807faf1d9942af91b0e0a8adcf97e4b68cd224e",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/ropensci/actions/runs/30606587997"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "5.0.0",
      "date": "2026-07-31T05:26:49.000Z",
      "commit": "4c0b85989f0085f4eb4c16eaefab6214b7854b6b",
      "fileid": "https://r2.ropensci.org/7f68ff48b3d3b8aaaebf16e7ea88afe5e15f80a2acd2878f049ca29b6f939ebd",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/ropensci/actions/runs/30606587997"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "5.0.0",
      "date": "2026-07-31T05:26:41.000Z",
      "commit": "4c0b85989f0085f4eb4c16eaefab6214b7854b6b",
      "fileid": "https://r2.ropensci.org/55d8167e6818a9db4e5f4c605fc5f7f2dbad12a317443f5e54f102eeb5a4650b",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/ropensci/actions/runs/30606587997"
    }
  ]
}