update, remove fda02 table - #363
Conversation
There was a problem hiding this comment.
🟡 Changes recommended
The PR description still contains required-review placeholders/TODOs (issue link and screenshot), and the namespace now contains a stale import that should be cleaned up via roxygen regeneration.
Once you've addressed the issues Copilot identified, you can request another Copilot review.
Pull request overview
This PR removes the public make_table_02() API (FDA Table 2 helper) from the package by deleting its implementation, namespace export/imports, and generated documentation, while keeping an archived implementation under R/archive. It also includes a no-op-ish snapshot update (trailing blank line) for the fda-table_02 template test output.
Changes:
- Removed
make_table_02()implementation and its generated Rd documentation. - Updated
NAMESPACEto drop the export and related imports tied tomake_table_02(). - Renamed the archived gtsummary helper in
R/archive/fda-table_02.Rtomake_table_02()and updated the snapshot file formatting.
File summaries
| File | Description |
|---|---|
| tests/testthat/_snaps/fda-table_02.md | Adds a trailing blank line in the snapshot output. |
| R/fda-table_02.R | Deletes the exported make_table_02() implementation entirely. |
| R/archive/fda-table_02.R | Renames the archived gtsummary implementation function to make_table_02(). |
| NAMESPACE | Removes export(make_table_02) and related imports previously needed by the deleted function. |
| man/make_table_02.Rd | Removes generated documentation for make_table_02(). |
Review details
- Files reviewed: 5/5 changed files
- Comments generated: 2
- Review effort level: Lite
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Unit Tests Summary 1 files 30 suites 22s ⏱️ Results for commit af576f9. ♻️ This comment has been updated with latest results. |
Code Coverage SummaryDiff against mainResults for commit: af576f9 Minimum allowed coverage is ♻️ This comment has been updated with latest results |
Unit Test Performance Difference
Additional test case details
Results for commit a437903 ♻️ This comment has been updated with latest results. |
| #' @keywords internal | ||
| #' @importFrom cards ard_continuous | ||
| #' @importFrom cardx ard_continuous_ci | ||
| #' @importFrom crane tbl_demographics |
There was a problem hiding this comment.
@copilot change tbl_demographics to tbl_roche_summary in this file
There was a problem hiding this comment.
Done — replaced tbl_demographics with tbl_roche_summary in both R/cardinalfda.R and NAMESPACE, and removed the stale gtsummary::tbl_summary import.
…NAMESPACE Co-authored-by: shajoezhu <3692541+shajoezhu@users.noreply.github.com>
gtsummary was in Depends but not imported, which trips the CI note-blocklist. Add it to the ignore_unused_imports() shim and NAMESPACE alongside the other Depends packages used by inst/templates. Also correct the crane import to tbl_listing (the symbol actually used; tbl_roche_summary was never called) and refresh the stale make_table_02 NEWS entry.
Melkiades
left a comment
There was a problem hiding this comment.
lgtm!! I added a couple of minor fixes ;)
Pull Request
GitHub Issue
Closes #nnn
Include a Screenshot of the TLG
Screenshot of TLG template from source document (e.g. FDA integrated guide)
TODO: Add screenshot here
Developer To-Dos
quarto/catalog/[TLG-ID]/index.qmdwith your TLG template.result.pngto thequarto/catalog/[TLG-ID]folder.mainbranch.Reviewer To-Dos
result.png).mainbranch.