{
  "_id": "6a211ab8cd65a98ecbd1d36c",
  "Package": "hmrc",
  "Title": "Download and Tidy 'HMRC' Statistical Data",
  "Version": "0.4.0",
  "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, fetch time, vintage, cell\nmethods) for reproducible fiscal research. Covers monthly tax\nreceipts (41 tax heads from 2008), 'VAT' (from 1973), fuel\nduties (from 1990), tobacco duties (from 1991), annual\n'Corporation Tax' receipts, stamp duty, research and\ndevelopment tax credit statistics (from 2000), tax gap\nestimates, 'Income Tax' liabilities by income range, and\nmonthly property transaction counts. File URLs are resolved at\nruntime via the 'GOV.UK' Content API\n<https://www.gov.uk/api/content>, so data is always current\nwithout hardcoded URLs. Files are cached locally between\nsessions.",
  "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-05-04 19:11:18 UTC",
  "RemoteUrl": "https://github.com/charlescoverdale/hmrc",
  "RemoteRef": "HEAD",
  "RemoteSha": "167abf3a769c3b02b94e3094128d718bc52cec0b",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-06-04 06:24:11 UTC",
    "User": "root"
  },
  "Author": "Charles Coverdale [aut, cre]",
  "Maintainer": "Charles Coverdale <charlesfcoverdale@gmail.com>",
  "MD5sum": "eed0eb3cdba3c7183fc94ccb914be9a9",
  "_user": "charlescoverdale",
  "_type": "src",
  "_file": "hmrc_0.4.0.tar.gz",
  "_fileid": "05f6391ad7d0645a39d81491afe4f1bc0f30033e78e727f5fa1f85d939ce2c4a",
  "_filesize": 232681,
  "_sha256": "05f6391ad7d0645a39d81491afe4f1bc0f30033e78e727f5fa1f85d939ce2c4a",
  "_created": "2026-06-04T06:24:11.000Z",
  "_published": "2026-06-04T06:27:04.911Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 79461907392,
      "time": 137,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7404497011"
    },
    {
      "job": 79461907341,
      "time": 138,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7404497260"
    },
    {
      "job": 79461907328,
      "time": 72,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7404494276"
    },
    {
      "job": 79461907344,
      "time": 82,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7404494233"
    },
    {
      "job": 79461590137,
      "time": 161,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7404464694"
    },
    {
      "job": 79461907310,
      "time": 105,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7404489693"
    },
    {
      "job": 79461907380,
      "time": 85,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7404485220"
    },
    {
      "job": 79461907346,
      "time": 86,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7404485458"
    },
    {
      "job": 79461907399,
      "time": 81,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7404484101"
    }
  ],
  "_buildurl": "https://github.com/r-universe/charlescoverdale/actions/runs/26868355231",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/charlescoverdale/hmrc",
  "_commit": {
    "id": "167abf3a769c3b02b94e3094128d718bc52cec0b",
    "author": "Charles Coverdale <charlesfcoverdale@gmail.com>",
    "committer": "Charles Coverdale <charlesfcoverdale@gmail.com>",
    "message": "docs(README): refocus Related packages on thematically relevant ones\n\nReplaced full-suite cross-references with a tight per-README table\ncovering only the packages a user of this one would actually want:\nsame-domain data sources, immediate analytical companions, and\ncross-country counterparts. Drops irrelevant cross-links (e.g.\nelectoral data from tax/energy READMEs) and adds packages that\nwere missing from older lists (e.g. mpshock, ivcheck, greenbook,\nmagentabook, aieconindex).\n",
    "time": 1777921878
  },
  "_maintainer": {
    "name": "Charles Coverdale",
    "email": "charlesfcoverdale@gmail.com",
    "login": "charlescoverdale",
    "linkedin": "in/charlescoverdale",
    "twitter": "@cfcoverdale",
    "description": "economics | climate science | R",
    "uuid": 21993492
  },
  "_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",
      "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
    }
  ],
  "_tags": [
    {
      "name": "v0.1.0",
      "date": "2026-03-08"
    },
    {
      "name": "v0.2.0",
      "date": "2026-03-08"
    }
  ],
  "_stars": 0,
  "_contributors": [
    {
      "user": "charlescoverdale",
      "count": 46,
      "uuid": 21993492
    }
  ],
  "_userbio": {
    "uuid": 21993492,
    "type": "user",
    "name": "Charles Coverdale",
    "description": "economics | climate science | R"
  },
  "_downloads": {
    "count": 490,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/hmrc"
  },
  "_devurl": "https://github.com/charlescoverdale/hmrc",
  "_pkgdown": "https://charlescoverdale.github.io/hmrc/",
  "_searchresults": 2,
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/hmrc.html",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "manual.pdf"
  ],
  "_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": 41,
      "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",
    "rappdirs",
    "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-04-26 12:52:17",
      "commits": 4
    }
  ],
  "_score": 4.6020599913279625,
  "_indexed": true,
  "_nocasepkg": "hmrc",
  "_universes": [
    "charlescoverdale"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.4.0",
      "date": "2026-06-04T06:26:27.000Z",
      "distro": "noble",
      "commit": "167abf3a769c3b02b94e3094128d718bc52cec0b",
      "fileid": "638676f98a3e385de53123969fb8bd1e6798766c2a1689ddef4b0f5fd60c5364",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/charlescoverdale/actions/runs/26868355231"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.4.0",
      "date": "2026-06-04T06:26:28.000Z",
      "distro": "noble",
      "commit": "167abf3a769c3b02b94e3094128d718bc52cec0b",
      "fileid": "1037057b90fd0c67caf4bd3a717177a2b6ec4e706480e782a49538801672fc9e",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/charlescoverdale/actions/runs/26868355231"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.4.0",
      "date": "2026-06-04T06:26:22.000Z",
      "commit": "167abf3a769c3b02b94e3094128d718bc52cec0b",
      "fileid": "e004a3f8d47cd198875fed74f2b7865eee95f4adc80da3cca68f393cd2b054e9",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/charlescoverdale/actions/runs/26868355231"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "0.4.0",
      "date": "2026-06-04T06:26:21.000Z",
      "commit": "167abf3a769c3b02b94e3094128d718bc52cec0b",
      "fileid": "06e3335299831fc74cb5172845a7026659e8512efe1a145232c3b5876d112719",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/charlescoverdale/actions/runs/26868355231"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.4.0",
      "date": "2026-06-04T06:26:11.000Z",
      "commit": "167abf3a769c3b02b94e3094128d718bc52cec0b",
      "fileid": "19d3cab96b52885de0e0976727c10505b7c6588d3b80b659577a026b6e018bc9",
      "status": "success",
      "buildurl": "https://github.com/r-universe/charlescoverdale/actions/runs/26868355231"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.4.0",
      "date": "2026-06-04T06:25:30.000Z",
      "commit": "167abf3a769c3b02b94e3094128d718bc52cec0b",
      "fileid": "80a97adc184ae1c4939eeb60d39002091e185cd36d608a4fa0902d22f41787ce",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/charlescoverdale/actions/runs/26868355231"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.4.0",
      "date": "2026-06-04T06:25:31.000Z",
      "commit": "167abf3a769c3b02b94e3094128d718bc52cec0b",
      "fileid": "60f72a2c154e9265a34d1415357803a1742395aa008e9473160375f393377fee",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/charlescoverdale/actions/runs/26868355231"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "0.4.0",
      "date": "2026-06-04T06:25:26.000Z",
      "commit": "167abf3a769c3b02b94e3094128d718bc52cec0b",
      "fileid": "d44e1aef9201bf24569bd4cdd5dbf27c23855cec3521ff0fec41407dab1354b5",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/charlescoverdale/actions/runs/26868355231"
    }
  ]
}