Package: pkgutils 0.1.0

Rob Challen

pkgutils: Functions for building functions

A suite of tools for helping in function and package development. This includes functions that check variables for consistency, or help parse out inputs to functions. This has a particular focus on inputs that use formula or `tidyselect` interfaces to define the parts of a dataframe that we might be interested in.

Authors:Rob Challen [aut, cre]

pkgutils_0.1.0.tar.gz
pkgutils_0.1.0.zip(r-4.5)pkgutils_0.1.0.zip(r-4.4)pkgutils_0.1.0.zip(r-4.3)
pkgutils_0.1.0.tgz(r-4.4-any)pkgutils_0.1.0.tgz(r-4.3-any)
pkgutils_0.1.0.tar.gz(r-4.5-noble)pkgutils_0.1.0.tar.gz(r-4.4-noble)
pkgutils_0.1.0.tgz(r-4.4-emscripten)pkgutils_0.1.0.tgz(r-4.3-emscripten)
pkgutils.pdf |pkgutils.html
pkgutils/json (API)

# Install 'pkgutils' in R:
install.packages('pkgutils', repos = c('https://bristol-vaccine-centre.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Bug tracker:https://github.com/bristol-vaccine-centre/pkgutils/issues

On CRAN:

26 exports 2 stars 0.91 score 24 dependencies 1 dependents 11 scripts 56 downloads

Last updated 6 months agofrom:9f04dfc234 (on 0.1.0). Checks:OK: 7. Indexed: yes.

TargetResultDate
Doc / VignettesOKAug 26 2024
R-4.5-winOKAug 26 2024
R-4.5-linuxOKAug 26 2024
R-4.4-winOKAug 26 2024
R-4.4-macOKAug 26 2024
R-4.3-winOKAug 26 2024
R-4.3-macOKAug 26 2024

Exports:%>%as.var_grp_dfcheck_consistentcheck_datecheck_integercheck_numericcol_symsensyms2escalateget_fn_argsget_fn_nameglimpse.var_grp_dfis.var_grp_dfoptional_fnrecycleresolve_missingvar_groupvar_group_comparevar_group_countvar_group_formulavar_group_modifyvar_group_nestvar_grpsvar_has_groupsvar_subgroup_countvar_subgroup_nest

Dependencies:clicpp11digestdplyrfansigenericsgluelifecyclelubridatemagrittrpillarpkgconfigpurrrR6rlangstringistringrtibbletidyrtidyselecttimechangeutf8vctrswithr

Consistency checking with pkgutils

Rendered fromconsistency.Rmdusingknitr::rmarkdownon Aug 26 2024.

Last update: 2024-03-28
Started: 2024-03-28

Readme and manuals

Help Manual

Help pageTopics
The 'var_grp_df' dataframe subtypeas.var_grp_df
Check function parameters are conform to a set of rulescheck_consistent
Checks a set of variables can be coerced to a date and coerces themcheck_date
Checks a set of variables can be coerced to integer and coerces themcheck_integer
Checks a set of variables can be coerced to numeric and coerces themcheck_numeric
Column names as symbolscol_syms
Convert a parameter into a list of symbolsensyms2
Cause warnings to create an errorescalate
Fully evaluate the arguments from a function call as a named list.get_fn_args
Get the name of a functionget_fn_name
Get an optional function without triggering a CRAN warningoptional_fn
Strictly recycle function parametersrecycle
Resolve missing values in function parameters and check consistencyresolve_missing
Extract a definition of column groups from function parametersvar_group
Cross compare subgroups of data to each othervar_group_compare
The number of major groups ('z' categories) in a 'var_grp_df'var_group_count
Export 'var_group' metadata as a formulavar_group_formula
Apply a function to each 'z' group using 'group_modify()'var_group_modify
Nest a 'var_grp_df' by the 'z' columnsvar_group_nest
'var_grp_df' S3 Methodsformat.var_grp_df glimpse.var_grp_df is.var_grp_df print.var_grp_df var_grp_s3
Extract grouping info frm a 'var_grp_df'var_grps
Does this 'var_grp_df' have more than one major group?var_has_groups
The number of major and sub groups ('z' and 'y' categories) in a 'var_grp_df'var_subgroup_count
Nest a 'var_grp_df' by the 'z' and 'y' columnsvar_subgroup_nest