v0.2.0
insights-engineering-bot
released this
20 Jul 15:17
·
149 commits
to main
since this release
New Features & Updates
- Converting
ard_*()
functions and other helpers to S3 generics to make them extendable. (#227) - Added helper
rename_ard_columns()
for renaming/coalescing group/variable columns. (#213). - Added new function
ard_total_n()
for calculating the total N in a data frame. (#236) - Added the
nest_for_ard(include_data)
argument to either include or exclude the subsetted data frames in a list-column in the returned tibble. - Added
check_ard_structure(column_order, method)
arguments to the function to check for column ordering and whether result contains astat_name='method'
row. - Added the optional
ard_heirarchicial(id)
argument. When provided we check for duplicates across the column(s) supplied here. If duplicates are found, the user is warned that the percentages and denominators are not correct. (#214) - Improved messaging in
check_pkg_installed()
that incorporates the calling function name in the case of an error. (#205) - Updated
is_pkg_installed()
andcheck_pkg_installed()
to allow checks for more than package at a time. Theget_min_version_required()
function has also been updated to return a tibble instead of a list with attributes. (#201) - Styling from the {cli} package are now removed from errors and warnings when they are captured with
eval_capture_conditions()
. Styling is removed withcli::ansi_strip()
. (#129)
Bug Fixes
- Bug fix in
ard_stack()
when calls to functions were namespaced. (#242) - The
print_ard_conditions()
function has been updated to no longer error out if the ARD object does not have"error"
or"warning"
columns. (#240) - Bug fix in
shuffle_ard()
where factors were coerced to integers instead of their labels. (#232)
Lifecycle Changes
- Corrected order that
ard_categorical
(strata) columns would appear in the ARD results. Previously, they appeared in the order they appeared in the original data, and now they are sorted properly. (#221) - The API for
ard_continuous(statistic)
andard_missing(statistic)
arguments has been updated. Previously, the RHS of these argument's passed lists would be eithercontinuous_summary_fns()
andmissing_summary_fns()
. Now these arguments accept simple character vectors of the statistic names. For example,ard_categorical(statistic = everything() ~ c("n", "p", "N"))
andard_missing(statistic = everything() ~ c("N_obs", "N_miss", "N_nonmiss", "p_miss", "p_nonmiss"))
. (#223) - Updated
ard_stack()
to returnn
,p
, andN
for theby
variable when specified. Previously, it only returnedN
which is the same for all levels of the by variable. (#219) - Bug fix where
ard_stack(by)
argument was not passed toard_missing()
whenard_stack(.missing=TRUE)
. (#244) - The
ard_stack(by)
argument has been renamed to".by"
and its location moved to after the dots inputs, e.g.ard_stack(..., .by)
. (#243) - A messaging overhaul to utilize the scripts in
https://github.com/ddsjoberg/standalone/blob/main/R/standalone-cli_call_env.R
. This allows clear error messaging across functions and packages. (#42)- The
print_ard_conditions(call)
,check_list_elements(env)
,cards_select(.call)
arguments have been removed.
- The
What's Changed
- check installed updates to allow more than one pkg at a time by @ddsjoberg in #202
- add unit tests for non-syntactic variable names by @ayogasekaram in #198
- Removing cli styling from errors and warnings captured with
eval_capture_conditions()
by @ddsjoberg in #203 - Change default landing page by @cicdguy in #204
- Improved messaging in
check_pkg_installed()
by @ddsjoberg in #208 - Remove
@noRd
tags from unexported functions by @edelarua in #210 - Returning
ard_stack(by)
summary stats by @ddsjoberg in #220 - print update to use
n_col
arg for all columns by @ddsjoberg in #226 - fixing order of strata variables in
ard_categorical(strata)
by @ddsjoberg in #224 - removing snapshot that includes error text rom dplyr by @ddsjoberg in #228
- Add functions to specify correct cli call env by @edelarua in #217
- Adding
ard_heirarchicial(id)
argument by @ddsjoberg in #229 - Closes #179 improve error messaging in
alias_as_fmt_fn()
by @zdz2101 in #222 - Create .gitlab-ci.yml for internal automations by @cicdguy in #237
- Workflow propagation by @walkowif in #206
- Update
print_ard_conditions
example to generate warnings/errors by @edelarua in #231 - Adding deprecated note about
dplyr::vars()
as selector by @ddsjoberg in #239 - 211 ard attributes gen by @rparmm in #238
shuffle_ard()
to properly coerce group and variable names/levels to character by @bzkrouse in #233- progress! by @ddsjoberg in #241
- Passing
ard_stack(by)
arg toard_missing()
when.missing=TRUE
by @ddsjoberg in #245 - Converting fns to generics to make them extendable by @ddsjoberg in #246
- Updates to the ARD checking function by @ddsjoberg in #247
ard_stack(by)
argument has been renamed to".by"
by @ddsjoberg in #249- fix in
ard_stack()
when calls to functions were namespaced by @ddsjoberg in #250 - Improved environment handling in
process_formula_selectors()
for formulas by @ddsjoberg in #252 - Function to rename ard columns by @bzkrouse in #254
- 223 updated api for statistic argumnet by @ddsjoberg in #257
- Adding
ard_total_n()
by @ddsjoberg in #258 - Inherit the Denominators documentation section in all relevant functions by @edelarua in #260
- adding better error message for
ard_stack(.by)
when mis-specified withard_stack(by)
by @ddsjoberg in #264 - add AE example by @bzkrouse in #262
- add gsk as author by @bzkrouse in #267
- Fix in
compute_formula_selector()
for named lists with duplicate names by @ddsjoberg in #270 - Updated quartile stat labels by @ddsjoberg in #271
- add unit tests for protected names by @ayogasekaram in #266
- Fixes for the AE example by @bzkrouse in #277
- Exporting the is_pkg_installed functions (like before) by @ddsjoberg in #278
New Contributors
- @cicdguy made their first contribution in #204
- @walkowif made their first contribution in #206
- @rparmm made their first contribution in #238
Full Changelog: v0.1.0...v0.2.0