dtlg 0.1.2
New features
- Added and exported
aesi_heading_msg(), which provides the shared default heading used for adverse events of special interest in the native and tern AET01 tables.
Bug fixes and behaviour changes
-
as_dtlg_table()now useswhere(is.character)when selecting columns, removing a tidyselect deprecation warning. - Reinstated the internal
%||%operator and documented its explicit use to avoid a false-positive dead-code warning from goodpractice. - Replaced
vctrs::vec_recycle_common()with a focused base R implementation and removed vctrs from package dependencies. Existingsummary_table()argument-recycling behaviour is preserved.
Internal improvements
- Extracted input validation and table-layout helpers from
AET01_table()andtern_AET01_table(). - Extracted descriptive-statistics calculation and validation helpers from
calc_desc(). - Removed unused column-relevel helpers and moved format-matching utilities from package code into the test suite.
- Expanded tests for AET01 and AET02 tables, tern table layouts,
calc_stats(),as_dtlg_table(), printing, labels, package availability, contingency-table expansion, and vector recycling. - Strengthened existing tests with stricter type, structure, formatting, and error assertions.
dtlg 0.1.1
Bug fixes and behaviour changes
-
AET01_table(): the row label for AE-related withdrawals has been shortened from “Total number of patients withdrawn from study due to an AE” to “Total number of patients withdrawn due to an AE”, for consistency with the other terse event labels in the same table. Code that matches this label by string equality (e.g. snapshot tests) will need to be updated.
dtlg 0.1.0
CRAN release: 2026-04-29
New features
-
summary_table(),summary_table_by()andsummary_table_by_targets()gain aninc_missingargument controlling how the “Missing” row is rendered for numeric targets:TRUE(default) always shows it,NAshows it only when missing values are present, andFALSEsuppresses it. Plumbed through tocalc_desc()andcalc_stats(). -
summary_table_by()andsummary_table_by_targets()gain asepargument to set the separator between the heading and group labels when grouping by more than one variable inrows_by(defaults to".").
Bug fixes and behaviour changes
-
calc_desc(): thenrow now reports the count of non-missing values rather than the total row count (.N), sonand theMissingrow are now consistent. -
summary_table_by_targets(): removed the spurious “target needs to be length 2” message; multiple target variables are now properly supported and covered by tests.
Infrastructure and tooling
- Adopted
lintrwith default linters across the package and added alint.yamlGitHub Actions workflow. - Added a code-coverage workflow that posts a coverage summary as a comment on pull requests, gated on
pull_requestevents to avoid duplicate runs. - Expanded the test suite – new tests for
AET01_table(), the rounding helpers,tern_summary_table(), and additionalsummary_table*()cases (multiple targets, missing-value handling) – raising overall coverage.
Documentation and metadata
- Reorganised maintainership and contact details: maintainer e-mails moved to the
acuityanalytics.comdomain and copyright holder updated to Acuity Analytics. - Documentation cleanup for
dt_count(),dt_summarise()and thesummary_table*()family; minor README and benchmarks article fixes.