{
  "_id": "6a0f6675acfb0bcc41c5d46b",
  "Package": "widr",
  "Title": "Interface to the World Inequality Database (WID)",
  "Version": "0.1.1",
  "Authors@R": "person(\"Cheryl Isabella\", \"Lim\", email = \"cheryl.academic@gmail.com\", role = c(\"aut\", \"cre\"))",
  "Description": "Interface to the World Inequality Database (WID) API\n<https://wid.world>. Downloads distributional national accounts\ndata with filters for country, year, percentile, age group, and\npopulation type. Includes code validation and reference tables.\nIndependent implementation unaffiliated with the World\nInequality Lab (WIL) or the Paris School of Economics.",
  "License": "GPL-3",
  "Encoding": "UTF-8",
  "Roxygen": "list(markdown = TRUE)",
  "RoxygenNote": "7.3.3",
  "VignetteBuilder": "knitr",
  "URL": "https://github.com/cherylisabella/widr",
  "BugReports": "https://github.com/cherylisabella/widr/issues",
  "LazyData": "true",
  "Config/pak/sysreqs": "libssl-dev",
  "Repository": "https://cherylisabella.r-universe.dev",
  "Date/Publication": "2026-04-21 14:01:58 UTC",
  "RemoteUrl": "https://github.com/cherylisabella/widr",
  "RemoteRef": "HEAD",
  "RemoteSha": "c382ce4bb2a4b231a41e5e2cf6916718afc5e333",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-05-21 09:51:49 UTC",
    "User": "root"
  },
  "Author": "Cheryl Isabella Lim [aut, cre]",
  "Maintainer": "Cheryl Isabella Lim <cheryl.academic@gmail.com>",
  "MD5sum": "86ea5ba006565f8aa5150b8d68d165a5",
  "_user": "cherylisabella",
  "_type": "src",
  "_file": "widr_0.1.1.tar.gz",
  "_fileid": "9678983d0155077ba6a1ca9add42c0629e3fe823435dad6eed798bc93b0bf1b3",
  "_filesize": 263771,
  "_sha256": "9678983d0155077ba6a1ca9add42c0629e3fe823435dad6eed798bc93b0bf1b3",
  "_created": "2026-05-21T09:51:49.000Z",
  "_published": "2026-05-21T20:09:25.150Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 77259044077,
      "time": 128,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7132662435"
    },
    {
      "job": 77259044569,
      "time": 149,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7132669910"
    },
    {
      "job": 77259044383,
      "time": 412,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7132721626"
    },
    {
      "job": 77259044399,
      "time": 221,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7132680996"
    },
    {
      "job": 77259043537,
      "time": 189,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7132617683"
    },
    {
      "job": 77259043793,
      "time": 115,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7146066250"
    },
    {
      "job": 77259043990,
      "time": 92,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7132650306"
    },
    {
      "job": 77259044245,
      "time": 85,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7132647955"
    },
    {
      "job": 77259044054,
      "time": 129,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7132668329"
    }
  ],
  "_buildurl": "https://github.com/r-universe/cherylisabella/actions/runs/26218587194",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/cherylisabella/widr",
  "_commit": {
    "id": "c382ce4bb2a4b231a41e5e2cf6916718afc5e333",
    "author": "cherylisabella <104558827+cherylisabella@users.noreply.github.com>",
    "committer": "GitHub <noreply@github.com>",
    "message": "Update README.md",
    "time": 1776780118
  },
  "_maintainer": {
    "name": "Cheryl Isabella Lim",
    "email": "cheryl.academic@gmail.com",
    "login": "cherylisabella",
    "description": "",
    "uuid": 104558827
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 4.1.0",
      "role": "Depends"
    },
    {
      "package": "base64enc",
      "role": "Imports"
    },
    {
      "package": "jsonlite",
      "role": "Imports"
    },
    {
      "package": "digest",
      "role": "Imports"
    },
    {
      "package": "ggplot2",
      "role": "Imports"
    },
    {
      "package": "httr2",
      "role": "Imports"
    },
    {
      "package": "scales",
      "role": "Imports"
    },
    {
      "package": "tools",
      "role": "Imports"
    },
    {
      "package": "utils",
      "role": "Imports"
    },
    {
      "package": "testthat",
      "version": ">= 3.0.0",
      "role": "Suggests"
    },
    {
      "package": "covr",
      "role": "Suggests"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "withr",
      "role": "Suggests"
    }
  ],
  "_owner": "cherylisabella",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2026-10",
      "n": 1
    },
    {
      "week": "2026-17",
      "n": 2
    }
  ],
  "_tags": [
    {
      "name": "v0.1.0",
      "date": "2026-03-05"
    },
    {
      "name": "v0.1.1",
      "date": "2026-04-20"
    }
  ],
  "_topics": [
    "data-science",
    "economics",
    "statistics"
  ],
  "_stars": 0,
  "_contributors": [
    {
      "user": "cherylisabella",
      "count": 3,
      "uuid": 104558827
    }
  ],
  "_userbio": {
    "uuid": 104558827,
    "type": "user",
    "name": "cherylisabella"
  },
  "_downloads": {
    "count": 534,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/widr"
  },
  "_devurl": "https://github.com/cherylisabella/widr",
  "_searchresults": 0,
  "_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/widr.html",
    "manual.pdf"
  ],
  "_homeurl": "https://github.com/cherylisabella/widr",
  "_realowner": "cherylisabella",
  "_cranurl": true,
  "_releases": [
    {
      "version": "0.1.0",
      "date": "2026-03-16"
    },
    {
      "version": "0.1.1",
      "date": "2026-04-20"
    }
  ],
  "_exports": [
    "download",
    "download_wid",
    "wid_ages",
    "wid_cache",
    "wid_cache_clear",
    "wid_cache_list",
    "wid_concepts",
    "wid_convert",
    "wid_countries",
    "wid_decode",
    "wid_encode",
    "wid_fetch",
    "wid_filter",
    "wid_gini",
    "wid_is_valid",
    "wid_metadata",
    "wid_percentile_ratio",
    "wid_percentiles",
    "wid_plot_compare",
    "wid_plot_lorenz",
    "wid_plot_timeseries",
    "wid_pop_types",
    "wid_query",
    "wid_search",
    "wid_series_types",
    "wid_set_key",
    "wid_tidy",
    "wid_top_share",
    "wid_validate"
  ],
  "_datasets": [
    {
      "name": "wid_ages",
      "title": "Age group codes (\\S2.1.3)",
      "object": "wid_ages",
      "class": [
        "data.frame"
      ],
      "fields": [
        "code",
        "description"
      ],
      "rows": 40,
      "table": true,
      "tojson": true
    },
    {
      "name": "wid_concepts",
      "title": "Concept codes (\\S3-9)",
      "object": "wid_concepts",
      "class": [
        "data.frame"
      ],
      "fields": [
        "code",
        "description"
      ],
      "rows": 464,
      "table": true,
      "tojson": true
    },
    {
      "name": "wid_countries",
      "title": "Country and region codes (\\S2.2)",
      "object": "wid_countries",
      "class": [
        "data.frame"
      ],
      "fields": [
        "code",
        "description"
      ],
      "rows": 281,
      "table": true,
      "tojson": true
    },
    {
      "name": "wid_percentiles",
      "title": "Percentile group codes (\\S2.3)",
      "object": "wid_percentiles",
      "class": [
        "data.frame"
      ],
      "fields": [
        "code",
        "description"
      ],
      "rows": 184,
      "table": true,
      "tojson": true
    },
    {
      "name": "wid_pop_types",
      "title": "Population unit codes (\\S2.1.4)",
      "object": "wid_pop_types",
      "class": [
        "data.frame"
      ],
      "fields": [
        "code",
        "description"
      ],
      "rows": 6,
      "table": true,
      "tojson": true
    },
    {
      "name": "wid_series_types",
      "title": "Series type codes (\\S2.1.1)",
      "object": "wid_series_types",
      "class": [
        "data.frame"
      ],
      "fields": [
        "code",
        "description"
      ],
      "rows": 17,
      "table": true,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "widr-package",
      "title": "widr: Interface to the World Inequality Database (WID)",
      "topics": [
        "widr-package",
        "widr"
      ]
    },
    {
      "page": "download_wid",
      "title": "Download data from WID.world",
      "topics": [
        "download",
        "download_wid"
      ]
    },
    {
      "page": "print.wid_df",
      "title": "Print a wid_df object",
      "topics": [
        "print.wid_df"
      ]
    },
    {
      "page": "print.wid_query",
      "title": "Print a wid_query object",
      "topics": [
        "print.wid_query"
      ]
    },
    {
      "page": "wid_ages",
      "title": "Age group codes (\\S2.1.3)",
      "topics": [
        "wid_ages"
      ]
    },
    {
      "page": "wid_cache",
      "title": "Interact with the WID response cache",
      "topics": [
        "wid_cache"
      ]
    },
    {
      "page": "wid_cache_clear",
      "title": "Clear all cached WID API responses",
      "topics": [
        "wid_cache_clear"
      ]
    },
    {
      "page": "wid_cache_list",
      "title": "List cached WID API responses",
      "topics": [
        "wid_cache_list"
      ]
    },
    {
      "page": "wid_concepts",
      "title": "Concept codes (\\S3-9)",
      "topics": [
        "wid_concepts"
      ]
    },
    {
      "page": "wid_convert",
      "title": "Convert a wid_df to another currency",
      "topics": [
        "wid_convert"
      ]
    },
    {
      "page": "wid_countries",
      "title": "Country and region codes (\\S2.2)",
      "topics": [
        "wid_countries"
      ]
    },
    {
      "page": "wid_decode",
      "title": "Parse a WID variable code into its components",
      "topics": [
        "wid_decode"
      ]
    },
    {
      "page": "wid_encode",
      "title": "Build a WID variable code from its components",
      "topics": [
        "wid_encode"
      ]
    },
    {
      "page": "wid_fetch",
      "title": "Execute a wid_query",
      "topics": [
        "wid_fetch"
      ]
    },
    {
      "page": "wid_filter",
      "title": "Update a wid_query object",
      "topics": [
        "wid_filter"
      ]
    },
    {
      "page": "wid_gini",
      "title": "Compute Gini coefficient from a share series",
      "topics": [
        "wid_gini"
      ]
    },
    {
      "page": "wid_is_valid",
      "title": "Test WID code components without throwing",
      "topics": [
        "wid_is_valid"
      ]
    },
    {
      "page": "wid_metadata",
      "title": "Fetch metadata for variables in a wid_df",
      "topics": [
        "wid_metadata"
      ]
    },
    {
      "page": "wid_percentile_ratio",
      "title": "Percentile threshold ratio (e.g. P90/P10)",
      "topics": [
        "wid_percentile_ratio"
      ]
    },
    {
      "page": "wid_percentiles",
      "title": "Percentile group codes (\\S2.3)",
      "topics": [
        "wid_percentiles"
      ]
    },
    {
      "page": "wid_plot_compare",
      "title": "Cross-country comparison bar/point chart",
      "topics": [
        "wid_plot_compare"
      ]
    },
    {
      "page": "wid_plot_lorenz",
      "title": "Lorenz curve",
      "topics": [
        "wid_plot_lorenz"
      ]
    },
    {
      "page": "wid_plot_timeseries",
      "title": "Time-series line chart for WID data",
      "topics": [
        "wid_plot_timeseries"
      ]
    },
    {
      "page": "wid_pop_types",
      "title": "Population unit codes (\\S2.1.4)",
      "topics": [
        "wid_pop_types"
      ]
    },
    {
      "page": "wid_query",
      "title": "Build a reusable WID query object",
      "topics": [
        "wid_query"
      ]
    },
    {
      "page": "wid_search",
      "title": "Search WID lookup tables by regex",
      "topics": [
        "wid_search"
      ]
    },
    {
      "page": "wid_series_types",
      "title": "Series type codes (\\S2.1.1)",
      "topics": [
        "wid_series_types"
      ]
    },
    {
      "page": "wid_set_key",
      "title": "Set WID API key",
      "topics": [
        "wid_set_key"
      ]
    },
    {
      "page": "wid_tidy",
      "title": "Tidy a wid_df: decode variable codes and coerce column types",
      "topics": [
        "wid_tidy"
      ]
    },
    {
      "page": "wid_top_share",
      "title": "Top income or wealth share",
      "topics": [
        "wid_top_share"
      ]
    },
    {
      "page": "wid_validate",
      "title": "Validate WID code components",
      "topics": [
        "wid_validate"
      ]
    }
  ],
  "_readme": "https://github.com/cherylisabella/widr/raw/HEAD/README.md",
  "_rundeps": [
    "askpass",
    "base64enc",
    "cli",
    "cpp11",
    "curl",
    "digest",
    "farver",
    "ggplot2",
    "glue",
    "gtable",
    "httr2",
    "isoband",
    "jsonlite",
    "labeling",
    "lifecycle",
    "magrittr",
    "openssl",
    "R6",
    "rappdirs",
    "RColorBrewer",
    "rlang",
    "S7",
    "scales",
    "sys",
    "vctrs",
    "viridisLite",
    "withr"
  ],
  "_vignettes": [
    {
      "source": "widr.Rmd",
      "filename": "widr.html",
      "title": "widr",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Installation",
        "Variable codes",
        "Downloading data",
        "Multiple countries and percentiles",
        "Excluding interpolated points",
        "Source metadata",
        "Key parameters",
        "Tidyverse integration",
        "Reusable query objects",
        "Caching",
        "Currency conversion",
        "Inequality measures",
        "Gini coefficient",
        "Top fractile share",
        "Percentile ratio",
        "Plotting",
        "Example",
        "Quick reference"
      ],
      "created": "2026-03-05 23:29:27",
      "modified": "2026-03-05 23:29:27",
      "commits": 1
    },
    {
      "source": "code-dictionary.Rmd",
      "filename": "code-dictionary.html",
      "title": "WID Codes Dictionary",
      "engine": "knitr::rmarkdown",
      "headings": [
        "1. General Presentation",
        "2. General Structure",
        "2.1 WID Code Examples",
        "2.1.1 Series Type (one-letter code)",
        "2.1.2 Concept (five-letter code)",
        "2.1.3 Age Group (three-digit code)",
        "2.1.4 Population Unit (one-letter code)",
        "2.1.5 Series Type x Population Unit Availability",
        "2.2 Country Codes",
        "Country Codes",
        "World Region Codes",
        "Historical Country Codes",
        "Country Subregion Codes",
        "2.3 Percentile Codes",
        "3. Aggregate Income Variables",
        "3.1.1 GDP and Net National Income",
        "3.1.2 Decomposition of Foreign Income",
        "3.1.3 Decomposition of Foreign Wealth",
        "3.1.4 Decomposition of National Income between Sectors",
        "3.1.5 Labor and Capital Share of National Income",
        "3.1.6 Income Decomposition by Institutional Sector",
        "3.2 Income of Households and NPISH",
        "3.2.1 Income of the Sectors Combined",
        "3.2.1.1 Primary Incomes of Households and NPISH",
        "3.2.1.2 Secondary Incomes of Households and NPISH",
        "3.2.1.3 Consumption and Savings of Households and NPISH",
        "3.2.1.4 Relation between Net and Gross Variables",
        "3.2.2 Income of Households",
        "3.2.2.1 Primary Incomes of the Household Sector",
        "3.2.2.2 Secondary Incomes of the Household Sector",
        "3.2.2.3 Consumption and Savings of the Household Sector",
        "3.2.2.4 Relation between Net and Gross Variables",
        "3.2.3 Income of NPISH",
        "3.2.3.1 Primary Incomes of NPISH",
        "3.2.3.2 Secondary Incomes of NPISH",
        "3.2.3.3 Consumption and Savings of NPISH",
        "3.2.3.4 Relation between Net and Gross Variables",
        "3.3 Income of the Corporate Sector",
        "3.3.1 Income of the Sectors Combined",
        "3.3.1.1 Primary Income of Corporations",
        "3.3.1.2 Secondary Income of Corporations",
        "3.3.1.3 Relation between Net and Gross Variables",
        "3.3.2 Income of Non-financial Corporations",
        "3.3.2.1 Primary Income",
        "3.3.2.2 Secondary Income",
        "3.3.2.3 Relation between Net and Gross Variables",
        "3.3.3 Income of Financial Corporations",
        "3.3.3.1 Primary Income",
        "3.3.3.2 Secondary Income",
        "3.3.3.3 Relation between Net and Gross Variables",
        "3.4 Income of the Government Sector",
        "3.4.1 Primary Income of the Government",
        "3.4.2 Secondary Income of the Government",
        "3.4.3 Consumption and Savings of the Government",
        "3.5 Current Account",
        "3.5.1 Trade Balance",
        "3.5.2 Trade Balance of Services",
        "3.5.3 Trade Balance of Goods",
        "3.5.4 Capital Account",
        "3.5.5 Net Foreign Transfers",
        "4. Distributed Income Variables",
        "4.1 DINA Income",
        "4.1.1 Pretax Income",
        "4.1.2 Post-tax Income",
        "4.1.3 Factor Income",
        "4.2 \"Fiscal\" Income",
        "5. Aggregate Wealth Variables",
        "5.1 National Economy",
        "5.2 Households and NPISH",
        "5.2.1 Combined Sector (Private Wealth)",
        "5.2.2 Household Sector",
        "5.2.3 NPISH",
        "5.3 Corporate Sector",
        "5.4 General Government Sector",
        "6. Distributed Wealth Variables",
        "7. Price Index, Exchange Rates, Populations, etc.",
        "7.1 Price Index",
        "7.2 Exchange Rates",
        "7.3 Population",
        "7.4 Wealth/Income Ratios and Labor/Capital Shares",
        "7.5 Inequality Transparency",
        "8. Aggregate Carbon Variables",
        "8.1 National Territorial Emissions",
        "8.2 National Imported Emissions",
        "8.3 National Exported Emissions",
        "8.4 National Net Imports of Emissions",
        "8.5 National Carbon Footprint",
        "9. Distributed Carbon Variables",
        "10. Quick Reference"
      ],
      "created": "2026-03-05 23:29:27",
      "modified": "2026-04-20 21:36:21",
      "commits": 2
    }
  ],
  "_score": 4.301029995663981,
  "_indexed": true,
  "_nocasepkg": "widr",
  "_universes": [
    "cherylisabella"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.1.1",
      "date": "2026-05-21T09:53:53.000Z",
      "distro": "noble",
      "commit": "c382ce4bb2a4b231a41e5e2cf6916718afc5e333",
      "fileid": "a0fc8c89f3350d7c8679d6b3d4cefa46424f20c76c3f85cffa76f1c838e097f7",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cherylisabella/actions/runs/26218587194"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.1.1",
      "date": "2026-05-21T09:54:09.000Z",
      "distro": "noble",
      "commit": "c382ce4bb2a4b231a41e5e2cf6916718afc5e333",
      "fileid": "48425362f3b30e8e4ca2fad728be272af827680afab3ac87fe569cf31cfc160a",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cherylisabella/actions/runs/26218587194"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.1.1",
      "date": "2026-05-21T09:56:16.000Z",
      "commit": "c382ce4bb2a4b231a41e5e2cf6916718afc5e333",
      "fileid": "982c4e77d68209f9cec136847af3b2bcf5443f85cb72824d60a78ecc74391da6",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cherylisabella/actions/runs/26218587194"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "0.1.1",
      "date": "2026-05-21T09:54:36.000Z",
      "commit": "c382ce4bb2a4b231a41e5e2cf6916718afc5e333",
      "fileid": "03cb7054961d170a5b7190ccd4c41e9d2cb318308f451481fd95209b25951c14",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cherylisabella/actions/runs/26218587194"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.1.1",
      "date": "2026-05-21T20:08:55.000Z",
      "commit": "c382ce4bb2a4b231a41e5e2cf6916718afc5e333",
      "fileid": "9a98057aad94286f8c8602a16fb0b24a973f828e8da376b1a1b023e6635eb8a0",
      "status": "success",
      "buildurl": "https://github.com/r-universe/cherylisabella/actions/runs/26218587194"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.1.1",
      "date": "2026-05-21T09:53:07.000Z",
      "commit": "c382ce4bb2a4b231a41e5e2cf6916718afc5e333",
      "fileid": "950311d950acc69866ab63dd54cc5762e1344b9e465ef6a11d9373c78e9c90c0",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cherylisabella/actions/runs/26218587194"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.1.1",
      "date": "2026-05-21T09:53:01.000Z",
      "commit": "c382ce4bb2a4b231a41e5e2cf6916718afc5e333",
      "fileid": "25d92a89a0c44176b5bbf048b1c61c44c75457734034d0c060be9b8098f37f8c",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cherylisabella/actions/runs/26218587194"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "0.1.1",
      "date": "2026-05-21T09:53:59.000Z",
      "commit": "c382ce4bb2a4b231a41e5e2cf6916718afc5e333",
      "fileid": "0ba93e4dccd7152dfefaafee04508931df606c96c18766249ef4f6fa1028cf4c",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cherylisabella/actions/runs/26218587194"
    }
  ]
}