Conversation
2 tasks
Agent-Logs-Url: https://github.com/pharmaverse/admiral/sessions/40c121c2-ed9a-4327-b3a1-5d921a0c3fb8 Co-authored-by: bms63 <10111024+bms63@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Move data within testthat calls for tests/testthat/test-derive_vars_dtm_to_tm.R
Closes #3052 - Tests: Move data/objects within testthat calls for "tests/testthat/test-derive_vars_dtm_to_tm.R"
Apr 14, 2026
Contributor
Collaborator
|
This is a pretty simple one so just going to merge in as AI created it and I reviewed it |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Test data in
tests/testthat/test-derive_vars_dtm_to_tm.Rwas defined at the top-level scope, risking unintended side effects between tests. All data objects are now self-contained within their respectivetest_thatblocks.Changes
inputtibble inside both Test 1 and Test 2test_thatblocksexpected_outputinside Test 1; moved formerexpected_output2(renamedexpected_output) inside Test 2# nolint start/endguards around long-linetribbledefinitions within each blockThank you for your Pull Request! We have developed this task checklist from the Development Process Guide to help with the final steps of the process. Completing the below tasks helps to ensure our reviewers can maximize their time on your code as well as making sure the admiral codebase remains robust and consistent.
Please check off each taskbox as an acknowledgment that you completed the task or check off that it is not relevant to your Pull Request. This checklist is part of the Github Action workflows and the Pull Request will not be merged into the
mainbranch until you have checked off each task.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.) N/Adevtools::document()so all.Rdfiles in themanfolder and theNAMESPACEfile in the project root are updated appropriately. N/ANEWS.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. N/Apkgdown::build_site()and check that all affected examples are displayed correctly and that all new functions occur on the "Reference" page. N/Alintr::lint_package(). N/AR CMD checklocally and address all errors and warnings -devtools::check(). N/A