{
  "_id": "6ace361da14063b82c3b156c",
  "Package": "hmrc",
  "Title": "Download and Tidy 'HMRC' Statistical Data",
  "Version": "0.4.1",
  "Authors@R": "person(\"Charles\", \"Coverdale\", , \"charlesfcoverdale@gmail.com\",\nrole = c(\"aut\", \"cre\"))",
  "Description": "Provides functions to download, parse, and tidy\nstatistical data published by 'HM Revenue and Customs' ('HMRC')\non 'GOV.UK'. Returns annotated 'hmrc_tbl' data frames with\nprovenance metadata (source URL, publication date, fetch time,\ncell methods) for reproducible fiscal research. Covers monthly\ntax receipts (42 series), 'VAT' (from 1973), fuel duties (from\n1990), tobacco duties (from 1991), 'Corporation Tax' receipts,\nstamp duty, research and development tax credits (from 2000),\ntax gap estimates (from 2005), 'Income Tax' liabilities by\nincome range, Capital Gains Tax, Inheritance Tax, the Patent\nBox, creative industries reliefs, and monthly property\ntransaction counts. File URLs are resolved at runtime via the\n'GOV.UK' Content API <https://www.gov.uk/api/content>, so data\nis always current without hardcoded URLs. Files are cached\nlocally between sessions.",
  "License": "MIT + file LICENSE",
  "Encoding": "UTF-8",
  "Language": "en-GB",
  "Roxygen": "list(markdown = TRUE)",
  "RoxygenNote": "7.3.3",
  "Config/testthat/edition": "3",
  "VignetteBuilder": "knitr",
  "URL": "https://charlescoverdale.github.io/hmrc/,\nhttps://github.com/charlescoverdale/hmrc",
  "BugReports": "https://github.com/charlescoverdale/hmrc/issues",
  "LazyData": "true",
  "Config/pak/sysreqs": "libicu-dev libssl-dev",
  "Repository": "https://charlescoverdale.r-universe.dev",
  "Date/Publication": "2026-09-13 19:20:52 UTC",
  "RemoteUrl": "https://github.com/charlescoverdale/hmrc",
  "RemoteRef": "HEAD",
  "RemoteSha": "d40c05ea4017a629f7ddcc37636986463feb0f60",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-10-13 13:21:47 UTC",
    "User": "root"
  },
  "Author": "Charles Coverdale [aut, cre]",
  "Maintainer": "Charles Coverdale <charlesfcoverdale@gmail.com>",
  "_user": "charlescoverdale",
  "_type": "src",
  "_file": "hmrc_0.4.1.tar.gz",
  "_fileid": "https://r2.ropensci.org/8aa4f027a015d83ad5e39e4682d9f554d31c6db139a58480cbd82078fffccaf0",
  "_filesize": 254288,
  "_sha256": "8aa4f027a015d83ad5e39e4682d9f554d31c6db139a58480cbd82078fffccaf0",
  "_expires": "2027-01-21T13:46:00.000Z",
  "_created": "2026-10-13T13:21:47.000Z",
  "_published": "2026-10-13T13:46:04.817Z",
  "_buildurl": "https://github.com/r-universe/charlescoverdale/actions/runs/38403940679",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_jobs": [
    {
      "job": 115320057481,
      "time": 128,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "11816912018"
    },
    {
      "job": 115320057512,
      "time": 118,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11817007001"
    },
    {
      "job": 115320058177,
      "time": 112,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "11818514889"
    },
    {
      "job": 115320057460,
      "time": 86,
      "config": "macos-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11818359632"
    },
    {
      "job": 115318616425,
      "time": 182,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11818650120"
    },
    {
      "job": 115320057551,
      "time": 97,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "11818555562"
    },
    {
      "job": 115320057712,
      "time": 96,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "11818980315"
    },
    {
      "job": 115320057478,
      "time": 84,
      "config": "windows-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "11817076851"
    },
    {
      "job": 115320057702,
      "time": 62,
      "config": "windows-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11817266692"
    }
  ],
  "_upstream": "https://github.com/charlescoverdale/hmrc",
  "_commit": {
    "id": "d40c05ea4017a629f7ddcc37636986463feb0f60",
    "author": "Charles Coverdale <charlesfcoverdale@gmail.com>",
    "committer": "Charles Coverdale <charlesfcoverdale@gmail.com>",
    "message": "Prepare 0.4.1: NEWS, README from live data, cran-comments\n\nThe README example outputs did not match HMRC's data, so every block is\nregenerated from a live run on 2026-09-13. Stale claims are corrected:\nmonthly receipts start in April 2017 (a rolling window), not April 2008;\nHMRC collects roughly three-quarters of public sector current receipts,\nnot 90%; the tax gap is a time series; and the SPI microdata pointer now\nnames the UK Data Service instead of an Australian package.\n\nNEWS lists every value that changes, since several returned values were\nwrong. cran-comments names the donttest ERROR, its upstream cause and the\nfix, and records both check runs (network on, and network blocked with\nNOT_CRAN=false). The llms files are regenerated for the hmrc_* API.\n",
    "time": 1789327252
  },
  "_maintainer": {
    "name": "Charles Coverdale",
    "email": "charlesfcoverdale@gmail.com",
    "login": "charlescoverdale",
    "linkedin": "in/charlescoverdale",
    "twitter": "@cfcoverdale",
    "description": "economics | climate science | R",
    "uuid": 21993492
  },
  "_distro": "resolute",
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 4.1.0",
      "role": "Depends"
    },
    {
      "package": "cli",
      "version": ">= 3.6.0",
      "role": "Imports"
    },
    {
      "package": "httr2",
      "version": ">= 1.0.0",
      "role": "Imports"
    },
    {
      "package": "lifecycle",
      "version": ">= 1.0.0",
      "role": "Imports"
    },
    {
      "package": "readODS",
      "version": ">= 2.3.0",
      "role": "Imports"
    },
    {
      "package": "readxl",
      "version": ">= 1.4.0",
      "role": "Imports"
    },
    {
      "package": "tools",
      "role": "Imports"
    },
    {
      "package": "utils",
      "role": "Imports"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "version": ">= 3.0.0",
      "role": "Suggests"
    },
    {
      "package": "ggplot2",
      "role": "Suggests"
    },
    {
      "package": "scales",
      "role": "Suggests"
    },
    {
      "package": "withr",
      "version": ">= 2.3.0",
      "role": "Suggests"
    }
  ],
  "_owner": "charlescoverdale",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2026-10",
      "n": 17
    },
    {
      "week": "2026-11",
      "n": 9
    },
    {
      "week": "2026-12",
      "n": 3
    },
    {
      "week": "2026-14",
      "n": 1
    },
    {
      "week": "2026-15",
      "n": 1
    },
    {
      "week": "2026-16",
      "n": 1
    },
    {
      "week": "2026-17",
      "n": 13
    },
    {
      "week": "2026-19",
      "n": 1
    },
    {
      "week": "2026-37",
      "n": 4
    }
  ],
  "_tags": [
    {
      "name": "v0.1.0",
      "date": "2026-03-08"
    },
    {
      "name": "v0.2.0",
      "date": "2026-03-08"
    },
    {
      "name": "v0.4.0",
      "date": "2026-04-26"
    }
  ],
  "_stars": 0,
  "_contributors": [
    {
      "user": "charlescoverdale",
      "count": 50,
      "uuid": 21993492
    }
  ],
  "_userbio": {
    "uuid": 21993492,
    "type": "user",
    "name": "Charles Coverdale",
    "followers": 15,
    "description": "economics | climate science | R"
  },
  "_downloads": {
    "count": 359,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/hmrc"
  },
  "_devurl": "https://github.com/charlescoverdale/hmrc",
  "_pkgdown": "https://charlescoverdale.github.io/hmrc/",
  "_searchresults": 5,
  "_rbuild": "4.6.1",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/hmrc.html",
    "extra/manual.pdf",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "LICENSE"
  ],
  "_homeurl": "https://github.com/charlescoverdale/hmrc",
  "_realowner": "charlescoverdale",
  "_cranurl": true,
  "_releases": [
    {
      "version": "0.3.0",
      "date": "2026-03-12"
    },
    {
      "version": "0.3.2",
      "date": "2026-03-17"
    },
    {
      "version": "0.4.0",
      "date": "2026-04-26"
    }
  ],
  "_exports": [
    "clear_cache",
    "get_corporation_tax",
    "get_fuel_duties",
    "get_income_tax_stats",
    "get_property_transactions",
    "get_rd_credits",
    "get_stamp_duty",
    "get_tax_gap",
    "get_tax_receipts",
    "get_tobacco_duties",
    "get_vat",
    "hmrc_cache_info",
    "hmrc_capital_gains",
    "hmrc_clear_cache",
    "hmrc_corporation_tax",
    "hmrc_creative_industries",
    "hmrc_fuel_duties",
    "hmrc_income_tax_stats",
    "hmrc_inheritance_tax",
    "hmrc_list_tax_heads",
    "hmrc_meta",
    "hmrc_patent_box",
    "hmrc_property_transactions",
    "hmrc_publications",
    "hmrc_rd_credits",
    "hmrc_search",
    "hmrc_stamp_duty",
    "hmrc_tax_gap",
    "hmrc_tax_receipts",
    "hmrc_tobacco_duties",
    "hmrc_vat",
    "list_tax_heads"
  ],
  "_datasets": [
    {
      "name": "catalogue",
      "title": "HMRC dataset catalogue",
      "object": "catalogue",
      "class": [
        "data.frame"
      ],
      "fields": [
        "dataset",
        "publication",
        "function_name",
        "frequency",
        "start",
        "publisher",
        "slug",
        "url",
        "description",
        "tags"
      ],
      "rows": 23,
      "table": true,
      "tojson": true
    },
    {
      "name": "tax_heads",
      "title": "Tax head lookup table",
      "object": "tax_heads",
      "class": [
        "data.frame"
      ],
      "fields": [
        "tax_head",
        "description",
        "category",
        "available_from"
      ],
      "rows": 42,
      "table": true,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "catalogue",
      "title": "HMRC dataset catalogue",
      "topics": [
        "catalogue"
      ]
    },
    {
      "page": "hmrc_cache_info",
      "title": "Inspect the local HMRC cache",
      "concept": [
        "infrastructure"
      ],
      "topics": [
        "hmrc_cache_info"
      ]
    },
    {
      "page": "hmrc_capital_gains",
      "title": "Download HMRC Capital Gains Tax statistics",
      "concept": [
        "data fetchers"
      ],
      "topics": [
        "hmrc_capital_gains"
      ]
    },
    {
      "page": "hmrc_clear_cache",
      "title": "Clear the local HMRC data cache",
      "concept": [
        "infrastructure"
      ],
      "topics": [
        "hmrc_clear_cache"
      ]
    },
    {
      "page": "hmrc_corporation_tax",
      "title": "Download HMRC Corporation Tax receipts by type",
      "concept": [
        "data fetchers"
      ],
      "topics": [
        "hmrc_corporation_tax"
      ]
    },
    {
      "page": "hmrc_creative_industries",
      "title": "Download HMRC Creative Industries tax relief statistics",
      "concept": [
        "data fetchers"
      ],
      "topics": [
        "hmrc_creative_industries"
      ]
    },
    {
      "page": "hmrc_fuel_duties",
      "title": "Download HMRC hydrocarbon oil (fuel duty) receipts",
      "concept": [
        "data fetchers"
      ],
      "topics": [
        "hmrc_fuel_duties"
      ]
    },
    {
      "page": "hmrc_income_tax_stats",
      "title": "Download HMRC Income Tax liabilities by income range",
      "concept": [
        "data fetchers"
      ],
      "topics": [
        "hmrc_income_tax_stats"
      ]
    },
    {
      "page": "hmrc_inheritance_tax",
      "title": "Download HMRC Inheritance Tax liabilities by estate band",
      "concept": [
        "data fetchers"
      ],
      "topics": [
        "hmrc_inheritance_tax"
      ]
    },
    {
      "page": "hmrc_list_tax_heads",
      "title": "List available tax heads in the HMRC Tax Receipts bulletin",
      "concept": [
        "infrastructure"
      ],
      "topics": [
        "hmrc_list_tax_heads"
      ]
    },
    {
      "page": "hmrc_meta",
      "title": "Provenance metadata of an 'hmrc_tbl'",
      "concept": [
        "infrastructure"
      ],
      "topics": [
        "hmrc_meta"
      ]
    },
    {
      "page": "hmrc_patent_box",
      "title": "Download HMRC Patent Box relief statistics",
      "concept": [
        "data fetchers"
      ],
      "topics": [
        "hmrc_patent_box"
      ]
    },
    {
      "page": "hmrc_property_transactions",
      "title": "Download monthly UK property transaction counts",
      "concept": [
        "data fetchers"
      ],
      "topics": [
        "hmrc_property_transactions"
      ]
    },
    {
      "page": "hmrc_publications",
      "title": "Index of HMRC publications known to the package",
      "concept": [
        "infrastructure"
      ],
      "topics": [
        "hmrc_publications"
      ]
    },
    {
      "page": "hmrc_rd_credits",
      "title": "Download HMRC R&D tax credit statistics",
      "concept": [
        "data fetchers"
      ],
      "topics": [
        "hmrc_rd_credits"
      ]
    },
    {
      "page": "hmrc_search",
      "title": "Search the HMRC dataset catalogue",
      "concept": [
        "infrastructure"
      ],
      "topics": [
        "hmrc_search"
      ]
    },
    {
      "page": "hmrc_stamp_duty",
      "title": "Download HMRC stamp duty receipts",
      "concept": [
        "data fetchers"
      ],
      "topics": [
        "hmrc_stamp_duty"
      ]
    },
    {
      "page": "hmrc_tax_gap",
      "title": "Download HMRC tax gap estimates",
      "concept": [
        "data fetchers"
      ],
      "topics": [
        "hmrc_tax_gap"
      ]
    },
    {
      "page": "hmrc_tax_receipts",
      "title": "Download HMRC tax receipts and National Insurance contributions",
      "concept": [
        "data fetchers"
      ],
      "topics": [
        "hmrc_tax_receipts"
      ]
    },
    {
      "page": "hmrc_tobacco_duties",
      "title": "Download HMRC tobacco duty receipts",
      "concept": [
        "data fetchers"
      ],
      "topics": [
        "hmrc_tobacco_duties"
      ]
    },
    {
      "page": "hmrc_vat",
      "title": "Download HMRC VAT receipts",
      "concept": [
        "data fetchers"
      ],
      "topics": [
        "hmrc_vat"
      ]
    },
    {
      "page": "tax_heads",
      "title": "Tax head lookup table",
      "topics": [
        "tax_heads"
      ]
    }
  ],
  "_readme": "https://github.com/charlescoverdale/hmrc/raw/HEAD/README.md",
  "_rundeps": [
    "askpass",
    "cellranger",
    "cli",
    "cpp11",
    "crayon",
    "curl",
    "glue",
    "hms",
    "httr2",
    "lifecycle",
    "magrittr",
    "minty",
    "openssl",
    "pillar",
    "pkgconfig",
    "prettyunits",
    "progress",
    "R6",
    "readODS",
    "readxl",
    "rematch",
    "rlang",
    "stringi",
    "sys",
    "tibble",
    "tzdb",
    "utf8",
    "vctrs",
    "withr",
    "zip"
  ],
  "_vignettes": [
    {
      "source": "uk-tax-receipts.Rmd",
      "filename": "uk-tax-receipts.html",
      "title": "Getting UK tax data with hmrc",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Discovery",
        "Monthly tax receipts",
        "VAT",
        "Fuel duties",
        "Tobacco duties",
        "Corporation Tax",
        "Stamp duty",
        "R&D tax credits",
        "Capital Gains Tax",
        "Inheritance Tax",
        "Patent Box",
        "Creative Industries reliefs",
        "Tax gap",
        "Income Tax liabilities",
        "Property transactions",
        "Caching"
      ],
      "created": "2026-03-08 11:11:51",
      "modified": "2026-09-13 19:20:52",
      "commits": 5
    }
  ],
  "_score": 4.653212513775344,
  "_indexed": true,
  "_nocasepkg": "hmrc",
  "_universes": [
    "charlescoverdale"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.4.1",
      "date": "2026-10-13T13:24:00.000Z",
      "distro": "resolute",
      "commit": "d40c05ea4017a629f7ddcc37636986463feb0f60",
      "fileid": "https://r2.ropensci.org/fb46b45b498987fbd0f1ebd6f6e559f43a473a78b7bc02b788e32b6a2f763029",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/charlescoverdale/actions/runs/38403940679"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "0.4.1",
      "date": "2026-10-13T13:23:53.000Z",
      "distro": "resolute",
      "commit": "d40c05ea4017a629f7ddcc37636986463feb0f60",
      "fileid": "https://r2.ropensci.org/670fbb552d85dd7d8aab0ad4405e90c41c314bca907e6b24ffba51cb210c8e59",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/charlescoverdale/actions/runs/38403940679"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.4.1",
      "date": "2026-10-13T13:45:21.000Z",
      "commit": "d40c05ea4017a629f7ddcc37636986463feb0f60",
      "fileid": "https://r2.ropensci.org/b608aef2ee727aaafadf0e94799b54633ad6e614dca4297a494644a903bcc729",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/charlescoverdale/actions/runs/38403940679"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "0.4.1",
      "date": "2026-10-13T13:44:35.000Z",
      "commit": "d40c05ea4017a629f7ddcc37636986463feb0f60",
      "fileid": "https://r2.ropensci.org/7bc20af874c12cdbb61d2ad01609b2d835e3ff01789d05d9cf455b030d1e6d85",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/charlescoverdale/actions/runs/38403940679"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.4.1",
      "date": "2026-10-13T13:23:46.000Z",
      "commit": "d40c05ea4017a629f7ddcc37636986463feb0f60",
      "fileid": "https://r2.ropensci.org/0f7fb2d200680f7e4e15d63790cbc6082907759b153f0fa3c6edffff88af805b",
      "status": "success",
      "buildurl": "https://github.com/r-universe/charlescoverdale/actions/runs/38403940679"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.4.1",
      "date": "2026-10-13T13:23:20.000Z",
      "commit": "d40c05ea4017a629f7ddcc37636986463feb0f60",
      "fileid": "https://r2.ropensci.org/292922ad3244d4ed12f3da7cb2bce93af69748010cb4b3755131dacdb268b3a0",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/charlescoverdale/actions/runs/38403940679"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.4.1",
      "date": "2026-10-13T13:23:17.000Z",
      "commit": "d40c05ea4017a629f7ddcc37636986463feb0f60",
      "fileid": "https://r2.ropensci.org/3177713f24367754f1a93e20cd205a8b31827615fae3a9163e1fbb4d6c415c73",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/charlescoverdale/actions/runs/38403940679"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "0.4.1",
      "date": "2026-10-13T13:22:57.000Z",
      "commit": "d40c05ea4017a629f7ddcc37636986463feb0f60",
      "fileid": "https://r2.ropensci.org/9aca3d5a207c7ff3b9e323ba8f9302cffb08a9ed4f2f30cbf77538f58db9f561",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/charlescoverdale/actions/runs/38403940679"
    }
  ]
}