Releases: pharmaverse/admiraldev
admiraldev 1.4.0
admiraldev 1.4.0
New Features
- Added custom
{admiral}linter configuration functionadmiral_linters()underinst/lintr/linters.Rto enable consistent
lint programming standards across the{admiral}family of packages. New configurations include, for instance, enforcing the use
ofcli::cli_abort()overstop()and enforcing the use ofcli::cli_warn()overwarning(). (#506)
Updates of Existing Functions
-
The
rdx_roclet()was updated such that it no longer fails if the
documentation contains an R6 class. (#512) -
assert_data_frame()was enhanced with the addition of a new argumentcheck_is_rowwisewhich checks whether the input dataset is rowwise.
This is set asTRUEby default, so may constitute a breaking change if rowwise datasets were being passed toassert_data_frame(). (#475)
Breaking Changes
-
Removed custom join functions (
anti_join(),inner_join(),left_join()) from{admiraldev}.
These functions were originally created to suppress warnings about different attributes on LHS and RHS of joins.
With{dplyr}>= 1.1.1, this warning is no longer issued, making these wrapper functions redundant.
Users should now use the standard{dplyr}join functions directly. The minimum required version of{dplyr}
has been updated from 1.0.5 to 1.1.1. (#530) -
The following function arguments are entering the next phase of the deprecation process: (#2487) (#2595)
Phase 1 (message)
%or%- Please get in touch if you are using this function!valid_time_units()- Please get in touch if you are using this function!
Phase 2 (warning)
No functions or arguments in this Phase
Phase 3 (error)
arg_name()- Userlang::caller_arg()insteadenumerate()- Useclifunctionality instead, e.g.,cli::cli_abort('{.val {letters[1:3]}}')what_is_it()- Useclifunctionality instead, e.g.,cli::cli_abort('{.obj_type_friendly {letters}}')friendly_type_of()- Useclifunctionality instead, e.g.,cli::cli_abort('{.obj_type_friendly {letters}}')
Phase 4 (removed)
No functions or arguments in this Phase
Documentation
-
Added the "Ask AI" widget to the the bottom right of each page. It enables users to ask questions about
{admiraldev}and the
rest of the{admiral}ecosystem and receive answers from an LLM. It is trained on the documentation of all{admiral}packages
and provided by kapa.ai. (#120) -
Added a new "Writing Custom Examples" vignette containing directives on how to build the "Examples" sections
for functions which use the customrdx_roclet(). (#503) -
The "Release Strategy" vignette was updated to remove inconsistencies in the "Hot Fix Release section",
and to improve its formatting. (#365) -
Added a note to the "Writing Vignettes" vignette to encourage users to include the
full title of all linked resources to ensure that resources can be found if links
become defunct or broken. (#463) -
Removed use of CODEOWNERS and discussion in Pull Request Guidance (#486)
Various
- Added various unit tests to improve the test coverage of
{admiraldev}. (#524)
admiraldev 1.3.1
- Note admiral 1.3.0 release is not included as a hot-fix was needed to address unicode issues in admiral 1.3.0 and so 1.3.1 was deployed.
admiraldev 1.3.1
- Replace unicode characters in .Rd files (#499)
admiraldev 1.3.0
New Features
-
The
rdx_roclet()extends the standard{roxygen2}roclet by the@permitted
and@defaulttags to specify the permitted and default values and the
@caption,@info, and@codetags for examples with a caption and a
description. (#484) -
replace_symbol_in_expr()andadd_suffix_to_vars()no longer fail if the
expression containsNA. (#490)
Updates of Existing Functions
Breaking Changes
-
The following function arguments are entering the next phase of the deprecation process: (#2487) (#2595)
Phase 1 (message)
Phase 2 (warning)
Phase 3 (error)
Phase 4 (removed)
Documentation
Various
admiraldev 1.2.0
admiraldev 1.2.0
New Features
- New Function
deprecate_inform()is a wrapper around
lifecycle::deprecate_soft()to allow for more control over messaging. (#466)
Updates of Existing Functions
-
Objects passed to
assert_list_element()via the...argument can now be
used in the glue expression specified for themessage_textargument. (#469) -
The
required_unitargument ofassert_unit()has been enhanced. It is now
possible to specify more than one unit or not specify it at all. In the latter
case only the uniqueness of the unit is checked. (#468) -
The
assert_numeric_vector()function gained an optionallengthargument to
check whether the vector has a specific length. (#473)
Breaking Changes
-
{admiraldev}is only compatible with R version >=4.1 (#456) -
The following function arguments are entering the next phase of the deprecation process: (#459)
Phase 1 (message)
No functions or arguments in this Phase
Phase 2 (warning)
No functions or arguments in this Phase
Phase 3 (error)
No functions or arguments in this Phase
Phase 4 (removed)
- The argument
quosureswas removed in the functionsvars2chr(quosures),replace_values_by_names(quosures), andget_source_vars(quosures) - Removed at v1.0.0
assert_named_expr() - Removed at v1.0.0
assert_has_variables() - Removed at v1.0.0
assert_function_param()
- The argument
Documentation
- Deprecation Strategy updated for the long haul! (#466)
Other
devcontainerfiles removed (#480)
admiraldev 1.1.0
admiraldev 1.1.0
Updates of Existing Functions
-
Updated
arg_nameparameter inassert_filter_cond,assert_symbol, andassert_exprwithgsub("^enexpr\\((\\w+)\\)$", "\\1", rlang::caller_arg(arg))argument so that error messages return a quoted argument withoutenexpr(), e.g.filter_addinstead ofenexpr(filter_add). (#2404) -
Error messaging throughout the package have been updated from
rlang::abort()tocli::cli_abort(). As a part of the update, each of theassert_*()functions have new argumentsassert_*(message, arg_name, call, class).(#367) -
Warning messaging has also been updated to use
{cli}messaging.
Breaking Changes
-
renvand related files have been removed. (#360) -
No longer exporting
is_named()function. (#401) -
pharmaversesdtmremoved as a dependency. (#434) -
As a part of the error messaging update, the following changes were made.
-
The
assert_s3_class(class)argument has been renamed toassert_s3_class(cls). (#367) -
Functions
arg_name(),enumerate(),what_is_it(), andfriendly_type_of()have been deprecated and a warning is returned to any developer using these functions. As these are developer functions (as opposed to functions for typical admiral users), we will use a short deprecation cycle.
-
Documentation
-
The "Release Strategy" vignette was updated with respect to the new branching
strategy. (#353) -
The "Release Strategy" vignette now contains a short new "Release Tracking" section linking to an external dashboard for CRAN packages that are awaiting release. (#358)
Other
admiraldev 1.0.0
New Features
Updates of Existing Functions
assert_function()now accepts all function arguments if ellipsis,...is in the function formals (#339)
Breaking Changes
- The following functions have been deprecated from previous admiral versions using the next phase of the deprecation process
assert_function_param()assert_named_expr()assert_has_variables()
Documentation
- New documentation in programming strategy around quoting/expressions and standardizing roxygen texts (#233, #332)
- New documentation on how to use footnotes when writing vignettes (#324)
- Updated language and images to adopt GitHub Flow Strategy (#349)
Various
admiraldev v0.5.0
admiraldev 0.5.0
New Features
- Calls for
admiral.testhave been swapped withpharmaversesdtm(#321) - New vignette for package writing extensions is now available (#295, #312)
- New vignette for creating test data is now available (#282)
Updates of Existing Functions
- The messaging for
warn_if_invalid_dtc()was updated to align with what the date/datetime functions inadmiralcurrently do. (#316)
Breaking Changes
- The following functions/arguments have been deprecated from previous admiral versions using the next phase of the deprecation process: (#288)
assert_order_vars()quo_c()quo_not_missing()replace_symbol_in_quo()- The
quosuresargument was replaced by theexpressionsargument inreplace_values_by_names(),get_source_vars(), andvars2chr(). (#288)
assert_function_param()was deprecated in favor ofassert_function(). (#264)assert_named_expr()was deprecated in favor ofassert_expr_list(). (#264)assert_has_variables()was deprecated in favor ofassert_data_frame(). (#264)
Documentation
- Guidance around issues and merging updated (#286)
- Common R CMD troubleshooting made into separate vignette (#286)
- Documentation of
get_dataset()was improved. (#271) - Minor updates to programming strategy were added (#213, #240, #260)
- Updated unit testing vignette with snapshot testing guidance. (#302)
- Documentation of
friendly_type_of()was provided (#22) - Minor updates to pull request review guidance were added (#201, #292)
- Documentation of singular versus plural function argument names was added into the programming strategy vignette. Also documentation on the common arguments
missing_valueandmissing_valueswas added. (#296) - Documentation highlighting the difference between
set_values_toandkeep_source_vars(#318) - List of common arguments was updated (#306)
Various
admiraldev 0.4.0
admiraldev 0.4.0
New Features
-
New function
assert_named()to check if all elements of an argument are
named (#241) -
New function
assert_expr_list()to check if an argument is a list of
expressions (#241) -
Added a Report a bug link on
admiraldevwebsite (#257)
Updates of Existing Functions
Breaking Changes
-
assert_order_vars()was deprecated in favor ofassert_expr_list(). (#241) -
The following functions have been deprecated from previous admiral versions using the next phase of the deprecation process: (#272)
quo_c()quo_not_missing()replace_symbol_in_quo()
-
The
quosuresargument was replaced by theexpressionsargument inreplace_values_by_names().
Documentation
admiraldev 0.3.0
Merge pull request #242 from pharmaverse/pre-release Pre release
v0.2.0
admiraldev 0.2.0
New Features
- Developer addin for formatting tests to admiral programming standards (#73)
- New functions
replace_symbol_in_quo()andadd_suffix_to_vars()(#106) - New function
assert_atomic_vector()(#98) - New keyword/family
create_auxfor functions creating auxiliary datasets (#126) - New function
assert_date_vector()(#129) - New function
assert_same_type()(#176) - Remove dependency on
{assertthat}(#149) - Test coverage for
admiraldevhave increased from 45% to approximately 100% (#94, #95, #96, #98, #101, #103) - Environment objects were consolidated into a single
admiraldev_environmentobject underR/admiraldev_environment.R. (#179)
Updates of Existing Functions
expect_namesargument added toassert_vars()to check if all variables are named (#117)- Remove
dplyrfunction exports and migration of user facing functionnegate_vars()to admiral (#83)
Breaking Changes
- No longer compatible with admiral (<0.9)
Documentation
- New vignette for our package release strategy (#79)
- Updated multiple roxygen headers (#116, #133, #134, #141, #145, #172)
- Description on how admiral options work for certain function inputs, i.e
subject_keys(#133)