{
  "_id": "6a102b29acfb0bcc41c9240d",
  "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://remlapmot.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-13 06:43:01 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": "e7aea3ccc9d6add2d848ea17e6a57633",
  "_user": "remlapmot",
  "_type": "src",
  "_file": "osutils_0.0.0.9000.tar.gz",
  "_fileid": "276898f2e7c7484e9634096335201eceb2a5a1854de970f2b18798179c3d00b2",
  "_filesize": 159692,
  "_sha256": "276898f2e7c7484e9634096335201eceb2a5a1854de970f2b18798179c3d00b2",
  "_created": "2026-05-13T06:43:01.000Z",
  "_published": "2026-05-22T10:08:41.517Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 77358823902,
      "time": 140,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "NOTE",
      "artifact": "6963346076"
    },
    {
      "job": 77358823922,
      "time": 142,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "NOTE",
      "artifact": "6963346697"
    },
    {
      "job": 77358824347,
      "time": 99,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "NOTE",
      "artifact": "6963489865"
    },
    {
      "job": 77358823601,
      "time": 132,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "NOTE",
      "artifact": "6963493123"
    },
    {
      "job": 77358823484,
      "time": 181,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "6963311060"
    },
    {
      "job": 77358823206,
      "time": 115,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7157994324"
    },
    {
      "job": 77358823550,
      "time": 80,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "NOTE",
      "artifact": "6963331549"
    },
    {
      "job": 77358824008,
      "time": 127,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "NOTE",
      "artifact": "6963343241"
    },
    {
      "job": 77358823923,
      "time": 97,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "NOTE",
      "artifact": "6963335448"
    }
  ],
  "_buildurl": "https://github.com/r-universe/remlapmot/actions/runs/25782880401",
  "_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": false,
  "_usedby": 0,
  "_updates": [],
  "_tags": [],
  "_stars": 0,
  "_contributors": [
    {
      "user": "remlapmot",
      "count": 39,
      "uuid": 3777473
    },
    {
      "user": "wjchulme",
      "count": 17,
      "uuid": 25637345
    }
  ],
  "_userbio": {
    "uuid": 3777473,
    "type": "user",
    "name": "Tom Palmer",
    "description": "Averaging statistician ... "
  },
  "_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": false,
  "_nocasepkg": "osutils",
  "_universes": [
    "remlapmot"
  ],
  "_indexurl": "https://opensafely-core.r-universe.dev/osutils",
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.0.0.9000",
      "date": "2026-05-13T06:45:21.000Z",
      "distro": "noble",
      "commit": "7ef65dd46b75043fb4523e51105e27278d011d58",
      "fileid": "83c038ebad07b6622936a2d3fddb8f3f09eee1064a15b6d5ca917f5ec8b43ab5",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/remlapmot/actions/runs/25782880401"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.0.0.9000",
      "date": "2026-05-13T06:45:23.000Z",
      "distro": "noble",
      "commit": "7ef65dd46b75043fb4523e51105e27278d011d58",
      "fileid": "e44ad00e7e121ed067c0ae5cdd9b9c4852c6a3bc8eb87a4038a7c20fae67c7a6",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/remlapmot/actions/runs/25782880401"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.0.0.9000",
      "date": "2026-05-13T06:55:08.000Z",
      "commit": "7ef65dd46b75043fb4523e51105e27278d011d58",
      "fileid": "4d88f63fe816df3ef715ea82756b1145a6c734c72d2792e4224a3bd34f5561d0",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/remlapmot/actions/runs/25782880401"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "0.0.0.9000",
      "date": "2026-05-13T06:55:18.000Z",
      "commit": "7ef65dd46b75043fb4523e51105e27278d011d58",
      "fileid": "11c5804115b0f0499c429ba2a133b78f15574147c6aacdb72478a0d46aa175ae",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/remlapmot/actions/runs/25782880401"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.0.0.9000",
      "date": "2026-05-13T06:44:19.000Z",
      "commit": "7ef65dd46b75043fb4523e51105e27278d011d58",
      "fileid": "cfe9b77b39815c4eec31f5d7b90715108ba873554da2de5574f30cf77412b080",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/remlapmot/actions/runs/25782880401"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.0.0.9000",
      "date": "2026-05-13T06:45:05.000Z",
      "commit": "7ef65dd46b75043fb4523e51105e27278d011d58",
      "fileid": "e5c6ba1f639bce2101c284410d4b5981a6d1bdf7b470295b153c907a96f4ff15",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/remlapmot/actions/runs/25782880401"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "0.0.0.9000",
      "date": "2026-05-13T06:44:32.000Z",
      "commit": "7ef65dd46b75043fb4523e51105e27278d011d58",
      "fileid": "c01acfa0acdbc4140650493a76bfc3e79475038d2afacc1ccb415eaffafa749a",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/remlapmot/actions/runs/25782880401"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.0.0.9000",
      "date": "2026-05-22T10:08:21.000Z",
      "commit": "7ef65dd46b75043fb4523e51105e27278d011d58",
      "fileid": "c9004ed567ca4e708f62df4c3318407d18aa7a78a27fce0cec1d1eaa7741fb8c",
      "status": "success",
      "buildurl": "https://github.com/r-universe/remlapmot/actions/runs/25782880401"
    }
  ]
}