{
  "_id": "6a1ef686b401979e734172a5",
  "Package": "osutils",
  "Title": "Useful Functions for OpenSAFELY",
  "Version": "0.0.0.9000",
  "Authors@R": "c(\nperson(\"William\", \"Hulme\", , \"william.hulme@phc.ox.ac.uk\", role = c(\"aut\", \"cre\"),\ncomment = c(ORCID = \"0000-0002-9162-4999\")),\nperson(\"Tom\", \"Palmer\", , \"remlapmot@hotmail.com\", role = \"aut\",\ncomment = c(ORCID = \"0000-0003-4655-4511\"))\n)",
  "Description": "Contains functions that are often needed when using the\nOpenSAFELY platform <https://www.opensafely.org/>, such as\nredaction and low-memory processing.",
  "License": "MIT + file LICENSE",
  "URL": "https://github.com/wjchulme/osutils,\nhttps://opensafely-core.r-universe.dev/osutils",
  "BugReports": "https://github.com/wjchulme/osutils/issues/",
  "Config/testthat/edition": "3",
  "Encoding": "UTF-8",
  "Roxygen": "list(markdown = TRUE)",
  "RoxygenNote": "7.2.1",
  "Config/pak/sysreqs": "cmake make libicu-dev libuv1-dev libxml2-dev\nlibssl-dev libnode-dev libx11-dev",
  "Repository": "https://opensafely-core.r-universe.dev",
  "Date/Publication": "2024-12-18 15:38:40 UTC",
  "RemoteUrl": "https://github.com/wjchulme/osutils",
  "RemoteRef": "HEAD",
  "RemoteSha": "7ef65dd46b75043fb4523e51105e27278d011d58",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-05-19 06:37:14 UTC",
    "User": "root"
  },
  "Author": "William Hulme [aut, cre] (ORCID:\n<https://orcid.org/0000-0002-9162-4999>),\nTom Palmer [aut] (ORCID: <https://orcid.org/0000-0003-4655-4511>)",
  "Maintainer": "William Hulme <william.hulme@phc.ox.ac.uk>",
  "MD5sum": "d537820f4b1d97a472c6d02a76e4ad09",
  "_user": "opensafely-core",
  "_type": "src",
  "_file": "osutils_0.0.0.9000.tar.gz",
  "_fileid": "236036acddec85af61e2dd274267054fe3dc4fcfaa5f8a52a07dc54954f43680",
  "_filesize": 158157,
  "_sha256": "236036acddec85af61e2dd274267054fe3dc4fcfaa5f8a52a07dc54954f43680",
  "_created": "2026-05-19T06:37:14.000Z",
  "_published": "2026-06-02T15:28:06.193Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 79107939225,
      "time": 133,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "NOTE",
      "artifact": "7076531155"
    },
    {
      "job": 79107939088,
      "time": 143,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "NOTE",
      "artifact": "7076533503"
    },
    {
      "job": 79107938833,
      "time": 88,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "NOTE",
      "artifact": "7076519248"
    },
    {
      "job": 79107939457,
      "time": 80,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "NOTE",
      "artifact": "7076517531"
    },
    {
      "job": 79107938905,
      "time": 187,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7076494882"
    },
    {
      "job": 79107937961,
      "time": 131,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7362239620"
    },
    {
      "job": 79107939063,
      "time": 100,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "NOTE",
      "artifact": "7076522448"
    },
    {
      "job": 79107939610,
      "time": 75,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "NOTE",
      "artifact": "7076515866"
    },
    {
      "job": 79107939962,
      "time": 80,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "NOTE",
      "artifact": "7076517287"
    }
  ],
  "_buildurl": "https://github.com/r-universe/opensafely-core/actions/runs/26080582969",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/wjchulme/osutils",
  "_commit": {
    "id": "7ef65dd46b75043fb4523e51105e27278d011d58",
    "author": "Will Hulme <25637345+wjchulme@users.noreply.github.com>",
    "committer": "GitHub <noreply@github.com>",
    "message": "Merge pull request #4 from remlapmot/add-runiverse-url\n\nAdd r-universe URL to allow osutils to show in opensafely-core.r-universe.dev search",
    "time": 1734536320
  },
  "_maintainer": {
    "name": "William Hulme",
    "email": "william.hulme@phc.ox.ac.uk",
    "orcid": "0000-0002-9162-4999"
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "broom",
      "role": "Imports"
    },
    {
      "package": "data.table",
      "role": "Imports"
    },
    {
      "package": "dplyr",
      "role": "Imports"
    },
    {
      "package": "forcats",
      "role": "Imports"
    },
    {
      "package": "fs",
      "role": "Imports"
    },
    {
      "package": "gt",
      "role": "Imports"
    },
    {
      "package": "jsonlite",
      "role": "Imports"
    },
    {
      "package": "lifecycle",
      "role": "Imports"
    },
    {
      "package": "magrittr",
      "role": "Imports"
    },
    {
      "package": "plyr",
      "role": "Imports"
    },
    {
      "package": "purrr",
      "role": "Imports"
    },
    {
      "package": "readr",
      "role": "Imports"
    },
    {
      "package": "rlang",
      "role": "Imports"
    },
    {
      "package": "stats",
      "role": "Imports"
    },
    {
      "package": "stringr",
      "role": "Imports"
    },
    {
      "package": "tibble",
      "role": "Imports"
    },
    {
      "package": "tidyr",
      "role": "Imports"
    },
    {
      "package": "tidyselect",
      "role": "Imports"
    },
    {
      "package": "yaml",
      "role": "Imports"
    },
    {
      "package": "testthat",
      "version": ">= 3.0.0",
      "role": "Suggests"
    }
  ],
  "_owner": "wjchulme",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [],
  "_tags": [],
  "_stars": 0,
  "_contributors": [
    {
      "user": "remlapmot",
      "count": 39,
      "uuid": 3777473
    },
    {
      "user": "wjchulme",
      "count": 17,
      "uuid": 25637345
    }
  ],
  "_userbio": {
    "uuid": 77844139,
    "type": "organization",
    "name": "OpenSAFELY Core",
    "description": "The code that runs the OpenSAFELY platform"
  },
  "_downloads": {
    "count": 0,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/osutils"
  },
  "_devurl": "https://github.com/wjchulme/osutils",
  "_searchresults": 1,
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/osutils.html",
    "extra/readme.html",
    "extra/readme.md",
    "manual.pdf"
  ],
  "_cranurl": false,
  "_exports": [
    "%>%",
    "action_names_to_txt",
    "c_action",
    "gt_cat",
    "gt_catcat",
    "gt_catnum",
    "gt_num",
    "pipeline_action",
    "pipeline_comment",
    "pipeline_list",
    "project_list_to_yaml",
    "readtype_csv",
    "readtype_delim",
    "redact_tblsummary",
    "redacted_summary_cat",
    "redacted_summary_catcat",
    "redacted_summary_catnum",
    "redacted_summary_date",
    "redacted_summary_num",
    "redactor",
    "redactor2",
    "reformat_codelists",
    "round_km",
    "sample_nonoutcomes_n",
    "sample_nonoutcomes_prop",
    "sample_random_n",
    "sample_random_prop",
    "sample_weights",
    "writetype_csv",
    "writetype_delim"
  ],
  "_help": [
    {
      "page": "action_names_to_txt",
      "title": "Put action names in a txt file --",
      "topics": [
        "action_names_to_txt"
      ]
    },
    {
      "page": "c_action",
      "title": "Create comment object",
      "topics": [
        "c_action"
      ]
    },
    {
      "page": "gt_cat",
      "title": "Convert output of categorical tabulation (redacted_summary_cat) to gt object",
      "topics": [
        "gt_cat"
      ]
    },
    {
      "page": "gt_catcat",
      "title": "Convert output of categorical cross-tabulation (redacted_summary_catcat) to gt object",
      "topics": [
        "gt_catcat"
      ]
    },
    {
      "page": "gt_catnum",
      "title": "Convert output of categorical-numeric cross-tabulation (redacted_summary_catnum) to gt object",
      "topics": [
        "gt_catnum"
      ]
    },
    {
      "page": "gt_num",
      "title": "Convert output of numeric tabulation (redact_summary_num) to gt object",
      "topics": [
        "gt_num"
      ]
    },
    {
      "page": "pipeline_action",
      "title": "Create action object",
      "topics": [
        "pipeline_action"
      ]
    },
    {
      "page": "pipeline_comment",
      "title": "Create comment object",
      "topics": [
        "pipeline_comment"
      ]
    },
    {
      "page": "pipeline_list",
      "title": "Create entire pipeline list",
      "topics": [
        "pipeline_list"
      ]
    },
    {
      "page": "project_list_to_yaml",
      "title": "Convert list to yaml and save",
      "topics": [
        "project_list_to_yaml"
      ]
    },
    {
      "page": "readtype_csv",
      "title": "Read a csv file into a tibble, and type columns using a separate json file.",
      "topics": [
        "readtype_csv"
      ]
    },
    {
      "page": "readtype_delim",
      "title": "Read a delimited file (including CSV and TSV) into a tibble, and type columns using a separate json file",
      "topics": [
        "readtype_delim"
      ]
    },
    {
      "page": "redact_tblsummary",
      "title": "Redact tbl_summary object",
      "topics": [
        "redact_tblsummary"
      ]
    },
    {
      "page": "redacted_summary_cat",
      "title": "Summarise a categorical variable and redact if necessary",
      "topics": [
        "redacted_summary_cat"
      ]
    },
    {
      "page": "redacted_summary_catcat",
      "title": "Categorical by categorical cross-tabulation, with redaction if necessary",
      "topics": [
        "redacted_summary_catcat"
      ]
    },
    {
      "page": "redacted_summary_catnum",
      "title": "Categorical by numeric cross-tabulation, with redaction if necessary",
      "topics": [
        "redacted_summary_catnum"
      ]
    },
    {
      "page": "redacted_summary_date",
      "title": "Redact a date vector",
      "topics": [
        "redacted_summary_date"
      ]
    },
    {
      "page": "redacted_summary_num",
      "title": "Summarise a numeric vector and redact if necessary",
      "topics": [
        "redacted_summary_num"
      ]
    },
    {
      "page": "redactor",
      "title": "Indicates which values to redact from a vector of frequencies",
      "topics": [
        "redactor"
      ]
    },
    {
      "page": "redactor2",
      "title": "Redact values in a vector based on frequency values",
      "topics": [
        "redactor2"
      ]
    },
    {
      "page": "reformat_codelists",
      "title": "Converts a json file of codelist names and URLs into an HTML table",
      "topics": [
        "reformat_codelists"
      ]
    },
    {
      "page": "round_km",
      "title": "Rounded Kaplan-Meier curves",
      "topics": [
        "round_km"
      ]
    },
    {
      "page": "sample_nonoutcomes_n",
      "title": "Sample patients (or other observational units) based on patient IDs, depending on occurrence of an event or not",
      "topics": [
        "sample_nonoutcomes_n"
      ]
    },
    {
      "page": "sample_nonoutcomes_prop",
      "title": "Sample patients (or other observational units) based on patient IDs, depending on occurrence of an event or not",
      "topics": [
        "sample_nonoutcomes_prop"
      ]
    },
    {
      "page": "sample_random_n",
      "title": "Sample n patients (or other observational units) based on patient IDs.",
      "topics": [
        "sample_random_n"
      ]
    },
    {
      "page": "sample_random_prop",
      "title": "Sample a proportion of patients (or other observational units) based on patient IDs",
      "topics": [
        "sample_random_prop"
      ]
    },
    {
      "page": "sample_weights",
      "title": "Derive sampling probabilities",
      "topics": [
        "sample_weights"
      ]
    },
    {
      "page": "writetype_csv",
      "title": "Write a data frame to a csv file, and save typing information in a separate json file",
      "topics": [
        "writetype_csv"
      ]
    },
    {
      "page": "writetype_delim",
      "title": "Write a data frame to a delimited file, and save typing information in a separate json file",
      "topics": [
        "writetype_delim"
      ]
    }
  ],
  "_readme": "https://github.com/wjchulme/osutils/raw/HEAD/README.md",
  "_rundeps": [
    "backports",
    "base64enc",
    "bigD",
    "bit",
    "bit64",
    "bitops",
    "broom",
    "bslib",
    "cachem",
    "cli",
    "clipr",
    "commonmark",
    "cpp11",
    "crayon",
    "curl",
    "data.table",
    "digest",
    "dplyr",
    "evaluate",
    "farver",
    "fastmap",
    "fontawesome",
    "forcats",
    "fs",
    "generics",
    "glue",
    "gt",
    "highr",
    "hms",
    "htmltools",
    "htmlwidgets",
    "jquerylib",
    "jsonlite",
    "juicyjuice",
    "knitr",
    "labeling",
    "lifecycle",
    "litedown",
    "magrittr",
    "markdown",
    "memoise",
    "mime",
    "pillar",
    "pkgconfig",
    "plyr",
    "prettyunits",
    "progress",
    "purrr",
    "R6",
    "rappdirs",
    "RColorBrewer",
    "Rcpp",
    "reactable",
    "reactR",
    "readr",
    "rlang",
    "rmarkdown",
    "sass",
    "scales",
    "stringi",
    "stringr",
    "tibble",
    "tidyr",
    "tidyselect",
    "tinytex",
    "tzdb",
    "utf8",
    "V8",
    "vctrs",
    "viridisLite",
    "vroom",
    "withr",
    "xfun",
    "xml2",
    "yaml"
  ],
  "_score": 1.6989700043360187,
  "_indexed": true,
  "_nocasepkg": "osutils",
  "_universes": [
    "opensafely-core",
    "wjchulme"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.0.0.9000",
      "date": "2026-05-19T06:39:33.000Z",
      "distro": "noble",
      "commit": "7ef65dd46b75043fb4523e51105e27278d011d58",
      "fileid": "62f794c2db1459dfa6a0b461a1776efb420b92c64c96a5bfd1ecb5735da72d94",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/opensafely-core/actions/runs/26080582969"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.0.0.9000",
      "date": "2026-05-19T06:39:41.000Z",
      "distro": "noble",
      "commit": "7ef65dd46b75043fb4523e51105e27278d011d58",
      "fileid": "fcf7d7cc3d1176b73bf40159a954494b51942586b0a4183eda960577dc4bca6a",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/opensafely-core/actions/runs/26080582969"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.0.0.9000",
      "date": "2026-05-19T06:38:50.000Z",
      "commit": "7ef65dd46b75043fb4523e51105e27278d011d58",
      "fileid": "ed305e7069b55c9fa29b23eb521510a9f2a3768cbb978ca6ba2b5e9a5bfe5ed7",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/opensafely-core/actions/runs/26080582969"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "0.0.0.9000",
      "date": "2026-05-19T06:38:44.000Z",
      "commit": "7ef65dd46b75043fb4523e51105e27278d011d58",
      "fileid": "822683b5380f9599816293062783941c750b363eb0080a547f553bc797faaf4d",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/opensafely-core/actions/runs/26080582969"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.0.0.9000",
      "date": "2026-05-19T06:38:54.000Z",
      "commit": "7ef65dd46b75043fb4523e51105e27278d011d58",
      "fileid": "f1d9abca5a1392437e926c9fac1aa6c43ffbfe47b4ce9a7331f5b302b55b44f6",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/opensafely-core/actions/runs/26080582969"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.0.0.9000",
      "date": "2026-05-19T06:38:31.000Z",
      "commit": "7ef65dd46b75043fb4523e51105e27278d011d58",
      "fileid": "a6af94de4f7df5e3cb02cb11164f669ef28987fe0b899e0e08af2ee85f8f8239",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/opensafely-core/actions/runs/26080582969"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "0.0.0.9000",
      "date": "2026-05-19T06:38:36.000Z",
      "commit": "7ef65dd46b75043fb4523e51105e27278d011d58",
      "fileid": "bab305fd47539e831e9357b6ac7b769a10c736c440df3da8cd0520b4e4b7bf0a",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/opensafely-core/actions/runs/26080582969"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.0.0.9000",
      "date": "2026-06-02T15:27:43.000Z",
      "commit": "7ef65dd46b75043fb4523e51105e27278d011d58",
      "fileid": "4ebc3a3205506659b50d3bb037f023da26d59e9b9e3d14fd2a6f23e16a411ecb",
      "status": "success",
      "buildurl": "https://github.com/r-universe/opensafely-core/actions/runs/26080582969"
    }
  ]
}