{
  "_id": "6a5349159b92047c28d57881",
  "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-07-12 07:55:06 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>",
  "_user": "remlapmot",
  "_type": "src",
  "_file": "osutils_0.0.0.9000.tar.gz",
  "_fileid": "https://r2.ropensci.org/ea692bf17cb008d63690ce0fe3aca724fdf8e3cef3785fb87ba72023f7289dbd",
  "_filesize": 160193,
  "_sha256": "ea692bf17cb008d63690ce0fe3aca724fdf8e3cef3785fb87ba72023f7289dbd",
  "_expires": "2026-10-20T07:58:11.000Z",
  "_created": "2026-07-12T07:55:06.000Z",
  "_published": "2026-07-12T07:58:13.355Z",
  "_jobs": [
    {
      "job": 86629396189,
      "time": 147,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "NOTE",
      "artifact": "8257723004"
    },
    {
      "job": 86629396192,
      "time": 146,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "NOTE",
      "artifact": "8257722921"
    },
    {
      "job": 86629396191,
      "time": 101,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "NOTE",
      "artifact": "8257716622"
    },
    {
      "job": 86629396209,
      "time": 68,
      "config": "macos-release-arm64",
      "r": "4.6.1",
      "check": "NOTE",
      "artifact": "8257711918"
    },
    {
      "job": 86629152338,
      "time": 196,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8257701789"
    },
    {
      "job": 86629396201,
      "time": 141,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "8257721707"
    },
    {
      "job": 86629396184,
      "time": 72,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "NOTE",
      "artifact": "8257712445"
    },
    {
      "job": 86629396196,
      "time": 73,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "NOTE",
      "artifact": "8257712557"
    },
    {
      "job": 86629396193,
      "time": 92,
      "config": "windows-release",
      "r": "4.6.1",
      "check": "NOTE",
      "artifact": "8257715306"
    }
  ],
  "_host": "GitHub-Actions",
  "_buildurl": "https://github.com/r-universe/remlapmot/actions/runs/29184905938",
  "_status": "success",
  "_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"
  },
  "_distro": "resolute",
  "_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",
    "followers": 110,
    "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.1",
  "_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",
    "LICENSE",
    "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-07-12T07:57:38.000Z",
      "distro": "resolute",
      "commit": "7ef65dd46b75043fb4523e51105e27278d011d58",
      "fileid": "https://r2.ropensci.org/d9d0983af0a8da00957d54c953f762e22703fe8a6a7710b8d6f4c3b06cdaad2d",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/remlapmot/actions/runs/29184905938"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "0.0.0.9000",
      "date": "2026-07-12T07:57:37.000Z",
      "distro": "resolute",
      "commit": "7ef65dd46b75043fb4523e51105e27278d011d58",
      "fileid": "https://r2.ropensci.org/d43ebeb902db9d35a6ec509d8f856b39870a032227bc246eacf22d9c445513a6",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/remlapmot/actions/runs/29184905938"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.0.0.9000",
      "date": "2026-07-12T07:56:53.000Z",
      "commit": "7ef65dd46b75043fb4523e51105e27278d011d58",
      "fileid": "https://r2.ropensci.org/8c424c310377f64c2fb27731d9b228778863c39567f3a5daa059fb8a22539824",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/remlapmot/actions/runs/29184905938"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "0.0.0.9000",
      "date": "2026-07-12T07:56:23.000Z",
      "commit": "7ef65dd46b75043fb4523e51105e27278d011d58",
      "fileid": "https://r2.ropensci.org/5747c997cc1ab9b4326f65e43f4c99e46683747ea93c510e5f285755d24dc9bd",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/remlapmot/actions/runs/29184905938"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.0.0.9000",
      "date": "2026-07-12T07:57:41.000Z",
      "commit": "7ef65dd46b75043fb4523e51105e27278d011d58",
      "fileid": "https://r2.ropensci.org/5e982bf8b7d18806286558ccd26bfaf2295a0ab2acde9293b54cedc56c3c1985",
      "status": "success",
      "buildurl": "https://github.com/r-universe/remlapmot/actions/runs/29184905938"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.0.0.9000",
      "date": "2026-07-12T07:56:18.000Z",
      "commit": "7ef65dd46b75043fb4523e51105e27278d011d58",
      "fileid": "https://r2.ropensci.org/adf88f40bea040c66714c02cae31da52815aef80780af07ab9eacf7e15fd0898",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/remlapmot/actions/runs/29184905938"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.0.0.9000",
      "date": "2026-07-12T07:56:19.000Z",
      "commit": "7ef65dd46b75043fb4523e51105e27278d011d58",
      "fileid": "https://r2.ropensci.org/f3315afb2653ff34333f7c0fdf6a020bfd8ef5f9cc8f62df33f8d433bad26bed",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/remlapmot/actions/runs/29184905938"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "0.0.0.9000",
      "date": "2026-07-12T07:56:38.000Z",
      "commit": "7ef65dd46b75043fb4523e51105e27278d011d58",
      "fileid": "https://r2.ropensci.org/9a9d3069a927ffe024552708abd3e85e9ef123b893124b3899137d49e32bb741",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/remlapmot/actions/runs/29184905938"
    }
  ]
}