{
  "_id": "6a2bd16bba420f1ac0cbca8f",
  "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-06-12 09:26:25 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": "2cb0523a19668d830863f70ff5d20e50",
  "_user": "remlapmot",
  "_type": "src",
  "_file": "osutils_0.0.0.9000.tar.gz",
  "_fileid": "72b167412eb99792e139a0dfef01b7c5db55beced4fd89912e6dbe2d2148b22d",
  "_filesize": 160189,
  "_sha256": "72b167412eb99792e139a0dfef01b7c5db55beced4fd89912e6dbe2d2148b22d",
  "_created": "2026-06-12T09:26:25.000Z",
  "_published": "2026-06-12T09:29:15.761Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 80998740968,
      "time": 131,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "NOTE",
      "artifact": "7587960676"
    },
    {
      "job": 80998740962,
      "time": 129,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "NOTE",
      "artifact": "7587959908"
    },
    {
      "job": 80998740971,
      "time": 120,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "NOTE",
      "artifact": "7587956232"
    },
    {
      "job": 80998741006,
      "time": 79,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "NOTE",
      "artifact": "7587942752"
    },
    {
      "job": 80998268139,
      "time": 172,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7587915114"
    },
    {
      "job": 80998740960,
      "time": 115,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7587954693"
    },
    {
      "job": 80998740939,
      "time": 69,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "NOTE",
      "artifact": "7587939862"
    },
    {
      "job": 80998740931,
      "time": 78,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "NOTE",
      "artifact": "7587942639"
    },
    {
      "job": 80998740987,
      "time": 138,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "NOTE",
      "artifact": "7587963297"
    }
  ],
  "_buildurl": "https://github.com/r-universe/remlapmot/actions/runs/27406912912",
  "_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",
    "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-06-12T09:28:40.000Z",
      "distro": "noble",
      "commit": "7ef65dd46b75043fb4523e51105e27278d011d58",
      "fileid": "72604b1e27d05d6385f80dd586fecc1c869f50a85a80d40d29be70c33cc82698",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/remlapmot/actions/runs/27406912912"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.0.0.9000",
      "date": "2026-06-12T09:28:37.000Z",
      "distro": "noble",
      "commit": "7ef65dd46b75043fb4523e51105e27278d011d58",
      "fileid": "30381d72d7b9cab1c03634fe5248f8149e56262552517d986b7f59ba1d48ac8b",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/remlapmot/actions/runs/27406912912"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.0.0.9000",
      "date": "2026-06-12T09:28:13.000Z",
      "commit": "7ef65dd46b75043fb4523e51105e27278d011d58",
      "fileid": "9123a11e952d5cdea89105eb98e4480b35295580fd8c9786fc69638c9dba0ba8",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/remlapmot/actions/runs/27406912912"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "0.0.0.9000",
      "date": "2026-06-12T09:27:50.000Z",
      "commit": "7ef65dd46b75043fb4523e51105e27278d011d58",
      "fileid": "6d4ffb30a92083326ec9345355639173fd9b2f749c463d69b18810f765b1ceea",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/remlapmot/actions/runs/27406912912"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.0.0.9000",
      "date": "2026-06-12T09:28:34.000Z",
      "commit": "7ef65dd46b75043fb4523e51105e27278d011d58",
      "fileid": "b5b9b43fb2b98384ea77bd5b995acbdbd08bb36c48536b721717680161e54647",
      "status": "success",
      "buildurl": "https://github.com/r-universe/remlapmot/actions/runs/27406912912"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.0.0.9000",
      "date": "2026-06-12T09:27:33.000Z",
      "commit": "7ef65dd46b75043fb4523e51105e27278d011d58",
      "fileid": "9be5dcda8c1c619e7091ae90525a3ff1296da203ac3337706f0e674f37f95d67",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/remlapmot/actions/runs/27406912912"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.0.0.9000",
      "date": "2026-06-12T09:27:44.000Z",
      "commit": "7ef65dd46b75043fb4523e51105e27278d011d58",
      "fileid": "110ea4bf73dac9906f83fbf45947f2aad723850fc4d25985f093f81a7e428122",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/remlapmot/actions/runs/27406912912"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "0.0.0.9000",
      "date": "2026-06-12T09:28:40.000Z",
      "commit": "7ef65dd46b75043fb4523e51105e27278d011d58",
      "fileid": "14fcd3a339eb2229db042302bdbba4ae51813d2c300c4c2c53d13c98017fa3ec",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/remlapmot/actions/runs/27406912912"
    }
  ]
}