Package: osutils 0.0.0.9000

William Hulme

osutils: Useful Functions for OpenSAFELY

Contains functions that are often needed when using the OpenSAFELY platform <https://www.opensafely.org/>, such as redaction and low-memory processing.

Authors:William Hulme [aut, cre], Tom Palmer [aut]

osutils_0.0.0.9000.tar.gz
osutils_0.0.0.9000.zip(r-4.7)osutils_0.0.0.9000.zip(r-4.6)osutils_0.0.0.9000.zip(r-4.5)
osutils_0.0.0.9000.tgz(r-4.6-any)osutils_0.0.0.9000.tgz(r-4.5-any)
osutils_0.0.0.9000.tar.gz(r-4.7-any)osutils_0.0.0.9000.tar.gz(r-4.6-any)
osutils_0.0.0.9000.tgz(r-4.6-emscripten)
manual.pdf |manual.html
card.svg |card.png
osutils/json (API)

# Install 'osutils' in R:
install.packages('osutils', repos = c('https://opensafely-core.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/wjchulme/osutils/issues

On CRAN:

Conda:

1.70 score 1 scripts 30 exports 75 dependencies

Last updated from:7ef65dd46b. Checks:7 NOTE, 2 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-x86_64NOTE133
source / vignettesOK187
linux-release-x86_64NOTE143
macos-release-arm64NOTE80
macos-oldrel-arm64NOTE88
windows-develNOTE100
windows-releaseNOTE80
windows-oldrelNOTE75
wasm-releaseOK131

Exports:%>%action_names_to_txtc_actiongt_catgt_catcatgt_catnumgt_numpipeline_actionpipeline_commentpipeline_listproject_list_to_yamlreadtype_csvreadtype_delimredact_tblsummaryredacted_summary_catredacted_summary_catcatredacted_summary_catnumredacted_summary_dateredacted_summary_numredactorredactor2reformat_codelistsround_kmsample_nonoutcomes_nsample_nonoutcomes_propsample_random_nsample_random_propsample_weightswritetype_csvwritetype_delim

Dependencies:backportsbase64encbigDbitbit64bitopsbroombslibcachemclicliprcommonmarkcpp11crayoncurldata.tabledigestdplyrevaluatefarverfastmapfontawesomeforcatsfsgenericsgluegthighrhmshtmltoolshtmlwidgetsjquerylibjsonlitejuicyjuiceknitrlabelinglifecyclelitedownmagrittrmarkdownmemoisemimepillarpkgconfigplyrprettyunitsprogresspurrrR6rappdirsRColorBrewerRcppreactablereactRreadrrlangrmarkdownsassscalesstringistringrtibbletidyrtidyselecttinytextzdbutf8V8vctrsviridisLitevroomwithrxfunxml2yaml

Readme and manuals

Help Manual

Help pageTopics
Put action names in a txt file --action_names_to_txt
Create comment objectc_action
Convert output of categorical tabulation (redacted_summary_cat) to gt objectgt_cat
Convert output of categorical cross-tabulation (redacted_summary_catcat) to gt objectgt_catcat
Convert output of categorical-numeric cross-tabulation (redacted_summary_catnum) to gt objectgt_catnum
Convert output of numeric tabulation (redact_summary_num) to gt objectgt_num
Create action objectpipeline_action
Create comment objectpipeline_comment
Create entire pipeline listpipeline_list
Convert list to yaml and saveproject_list_to_yaml
Read a csv file into a tibble, and type columns using a separate json file.readtype_csv
Read a delimited file (including CSV and TSV) into a tibble, and type columns using a separate json filereadtype_delim
Redact tbl_summary objectredact_tblsummary
Summarise a categorical variable and redact if necessaryredacted_summary_cat
Categorical by categorical cross-tabulation, with redaction if necessaryredacted_summary_catcat
Categorical by numeric cross-tabulation, with redaction if necessaryredacted_summary_catnum
Redact a date vectorredacted_summary_date
Summarise a numeric vector and redact if necessaryredacted_summary_num
Indicates which values to redact from a vector of frequenciesredactor
Redact values in a vector based on frequency valuesredactor2
Converts a json file of codelist names and URLs into an HTML tablereformat_codelists
Rounded Kaplan-Meier curvesround_km
Sample patients (or other observational units) based on patient IDs, depending on occurrence of an event or notsample_nonoutcomes_n
Sample patients (or other observational units) based on patient IDs, depending on occurrence of an event or notsample_nonoutcomes_prop
Sample n patients (or other observational units) based on patient IDs.sample_random_n
Sample a proportion of patients (or other observational units) based on patient IDssample_random_prop
Derive sampling probabilitiessample_weights
Write a data frame to a csv file, and save typing information in a separate json filewritetype_csv
Write a data frame to a delimited file, and save typing information in a separate json filewritetype_delim