Repository navigation
admiral 1.5.0
Updates of Existing Functions
-
derive_vars_dt()andderive_vars_dtm()were enhanced to allow user-defineddate_imputationvalues (e.g.date_imputation = "10") in combination withhighest_imputation = "D". Additionally, functions such asderive_vars_dt(),derive_vars_dtm(),impute_dtc_dt()andimpute_dtc_dtm()now issue an error if any invalid dates (e.g. "2020-02-31"). (#3014) -
The
end_datesargument for specifying dates which restrict the observation period and theevent_typeargument for specifying if the event is negative (progression, death, worsening, ...) were added toderive_param_tte(). Theconsider_end_datesfield was added to theevent_source(),censor_source(), andtte_source()objects. (#2952) -
The
by_varsand thetmp_obs_nr_vararguments were added toevent_joined(). This allows to derive parameters requiring confirmation by visit usingderive_extreme_event(). (#3022) -
The
filter_sourceargument was added toevent_joined(), allowing to specify a condition to restrict the source dataset before the join, e.g., when usingderive_extreme_event(). (#3033) -
The
filter_addargument inderive_var_joined_exist_flag()is no longer erroneously ignored. (#3018) -
Poorly formatted warning messages in
derive_param_computed()andderive_vars_computed()were improved. (#2969)
- Fixed typo in
derive_summary_records()error message. (#3127)
-
use_ad_template()was updated to remove theopenargument, meaning the generated template will never automatically open in a new window, and will instead just be accessible by clicking the link outputted in the console or going to the path specified undersave_path. This is because this functionality did not work as expected outside of RStudio. (#2989) -
The NCICTCAEv5 grading criteria (
atoxgr_criteria_ctcv5,atoxgr_criteria_ctcv5_uscv) were updated to add the term"Blood lactate dehydrogenase increase"(#3025). -
The
missing_valuesargument was added toderive_extreme_records(). This allows users to specify values for variables in the new records originating fromdataset_ref. (#3017) -
list_all_templates()now only lists out.Rfiles with thetemplatesfolder of the target package. (#3136)
Breaking Changes
-
The following function arguments are entering the next phase of the [deprecation process (https://pharmaverse.github.io/admiraldev/articles/programming_strategy.html#deprecation):
Phase 1 (message)
No functions or arguments in this phase.
Phase 2 (warning)
No functions or arguments in this phase.
Phase 3 (error)
call_user_fun()is deprecated and will have no replacement.
Phase 4 (removed)
No functions or arguments in this phase.
-
The
ex_singledataset was removed from{admiral}to reduce the package size. It can be derived on the fly usingcreate_single_dose_dataset(). See theOCCDSvignette or?create_single_dose_datasetfor examples. (#3060)
Documentation
-
A new article "Time-to-Event Analyses" was added to provide guidance for different TTE scenarios. (#2900)
-
The following new and existing User Guides have been changed from vignettes to articles, meaning they are no longer accessible
offline viavignette("vignette_name"):- Creating an ADAB ADaM
- Estimands (new)
This helps minimize the size of
{admiral}for installation. The articles are still accessible through the User Guides section of the
admiral website. (#3067) -
The documentation for
derive_var_merged_ef_msrc()was enhanced with structured examples coveringflag_eventswith multiple
sources, customizingtrue_value,false_value, andmissing_value, and per-sourceby_varsrenaming. (#2906) -
The
UDTCderivation inADPPKwas updated to use source domainDTCvariables. (#3011) -
The example for
derive_var_nfrlt()was updated to useNA_character_instead of""for missing unit values, consistent with
the{admiral}programming strategy. (#3027) -
A new web-only "Estimands" article was added, describing possible implementations of Estimands with
{admiral}code. (#2954) -
A night mode option has been added to the
{admiral}website. This can be be toggled using the sun/moon icon in the top right corner
of the navigation bar. Tooltips have also been set up for each of the icons on the navigation bar. (#2959) -
The contribution guidelines for the
{admiral}ecosystem
of packages were updated to specify the level of contributions required for authorship/acknowledgments. (#2979) -
The examples for
derive_basetype_records()were enhanced to include a case where records that do not match any
condition inbasetypesare retained withBASETYPEset toNA. (#2904) -
Additional information about timing variable conventions has been added to the
derive_vars_dy()function documentation. (#2995) -
The documentation for
derive_vars_merged_summary()was enhanced with structured examples covering
thenew_vars,filter_add,missing_values,by_varsrenaming, and string aggregation use cases. (#2775) -
A new custom 404 page was added with a butterfly quiz for lost users. (#2982)
-
Added information about how to print out records with missing information when using
datasetrefinderive_summary_records(). (#3012) -
Usage of
ASEQ(an optional variable) was clarified within the corresponding Vignettes and Templates. (#2986) -
The derivation of
DOSEONandDOSEUvariables in the OCCDS vignette was
clarified and generalized to cover more scenarios. (#3101) -
The documentation for
derive_vars_dtm()andderive_vars_dt()was updated to clarify details of thehighest_imputationargument. (#3055) -
The "Date and Time Imputation" vignette was updated to point out the difference between the character
*DTCvariables and the numeric*DTMvariables. (#3055) -
The documentation for
compute_*()and other computation functions was updated to clarify
that they are vector-oriented helpers and are not usually called directly on a
data frame with%>%. (#3146) -
Added notes and examples for deriving baseline toxicity grade variables (
BTOXGR,BTOXGRL,BTOXGRH) in the Lab Grading vignette. (#3119)
Various
Developer Notes
-
Update to roxygen2 8.0.0. (#3090)
-
The
admiral_labels_attrs_section()function was added to output standardized boilerplate markdown for the "Add Labels and Attributes" section in ADaM-specific vignettes. All relevant vignettes have been updated to use this function, ensuring consistent content that can be maintained in one place. (#2926) -
Add instructions for AI coding agents: Workflow from
{admiralci}copies information from{admiraldev}toAGENTS.mdinstruction files. (#2920) -
Increased the maximum height of the drop-down menus in the website navigation bar to ensure all items are visible without scrolling. (#2974)
-
Creating the website for pull requests was enabled. Add "[create website]" to
the pull request title to trigger website creation. (#2984) -
_pkgdown.ymlwas updated to add metadata for linking across packages
(inst/pkgdown.yml). (#2950) -
The helper functions
roxygen_param_dataset(),roxygen_param_by_vars(),roxygen_order_na_handling(), androxygen_save_memory()have been moved from{admiral}to{admiraldev}. They are now exported from{admiraldev}and remain accessible in{admiral}via the existing@import admiraldevdependency. (admiraldev/#517) -
The HTML tag
<br/>was removed from the roxygen headers. (#3042) -
Clickable links to personal websites or GitHub profiles were added in the home page sidebar for every
{admiral}author. (#3112)