Closes #3148 - 1.6 deprecations/deletions [create website]#3166
Conversation
|
@copilot can you not change the |
Done in 60ad515. Reverted all
Also updated
|
|
@copilot can you do an empty commit so it triggers the website build please |
|
The website/documentation is available at https://pharmaverse.github.io/admiral/copilot/fix-1-6-deprecations. |
|
@copilot can you investigate teh failing CMD checks and provide a potential solution. do not implement yet just provide the solution |
There are two distinct failure types: Failure 1 — Snapshot mismatches (2 tests) The lifecycle
Fix: Update both snapshot files to reflect the actual
Failure 2 — Roxygen / Man Pages out of date Eight Fix: Remove the
Just let me know when you'd like me to go ahead and implement these fixes. |
|
@copilot can you implemented these changes please Create a Phase 1 (message) stub - will be blank for now but shoudl be similar layout to previous admiral version |
Co-authored-by: bms63 <10111024+bms63@users.noreply.github.com>
Done in the latest commit. Here's a summary of what was implemented:
|
|
@bundfussr and @manciniedoardo think this is ready for a pass through/review? Will fix the lint next weekend!! |
Advances all functions in the admiral deprecation cycle one phase forward for v1.6.0, per the deprecation strategy.
Changes by Phase
Phase 4 — Removed
call_user_fun(): deleted R source, tests, snapshot, andNAMESPACEexportPhase 3 — Now errors (
deprecate_stop)Previously Phase 2 (warning since 1.4.0 / deprecated since 1.2.0):
derive_param_extreme_record()→derive_extreme_event()derive_var_dthcaus()/dthcaus_source()→derive_vars_extreme_event()/event()derive_var_extreme_dt()/derive_var_extreme_dtm()/date_source()→derive_vars_extreme_event()/event()get_summary_records()→derive_summary_records()For each: changed to
deprecate_stop(when = "1.6.0"), removed@examplesfrom roxygen/Rd, replaced all tests with a singleexpect_error(..., class = "lifecycle_error_deprecated"), deleted snapshot files.Phase 2 — Now warnings (
deprecate_warn)Previously Phase 1 (message since 1.4.0):
derive_var_merged_summary()→derive_vars_merged_summary()derive_var_atoxgr_dir(abnormal_indicator = )→low_indicator/high_indicatorFor each: changed to
deprecate_warn(when = "1.6.0")with updated details message ("will turn into an error at the beginning of 2028"), updated snapshot format fromMessagetoWarning.Documentation
[get_summary_records()]from@seealsoinderive_merged.Rabnormal_indicator→high_indicatorNEWS.mdupdated with all phase transitionsChecklist
styler::style_file()to style R and Rmd filesinst/cheatsheet/admiral_cheatsheet.pptxand re-upload a PDF and a PNG version of it to the same folder. (The PNG version can be created by taking a screenshot of the PDF version.)devtools::document()so all.Rdfiles in themanfolder and theNAMESPACEfile in the project root are updated appropriatelyNEWS.mdunder the header# admiral (development version)if the changes pertain to a user-facing function (i.e. it has an@exporttag) or documentation aimed at users (rather than developers). A Developer Notes section is available inNEWS.mdfor tracking developer-facing issues.pkgdown::build_site()and check that all affected examples are displayed correctly and that all new functions occur on the "Reference" page.lintr::lint_package()R CMD checklocally and address all errors and warnings -devtools::check()