modified sort_ard_hierarchical function#550
Conversation
|
✅ All contributors have signed the CLA |
|
I have read the CLA Document and I hereby sign the CLA |
|
@rikoprogrammer thanks for the PR. Can you address the CI/CD failures, please? The contributing guide often guides us to the resolution. https://github.com/insightsengineering/cards/blob/main/.github/CONTRIBUTING.md Thanks! |
| Sys.getenv() | ||
| library(cards) | ||
| library(gtsummary) |
There was a problem hiding this comment.
we need to add this to .gitignore
There was a problem hiding this comment.
oh my goodness! can you add, please? I am surprised it wasn't already there! 😱
| #' sums, otherwise `p` is used. If neither `n` nor `p` are present in `x` for the variable, an error will occur. | ||
| #' | ||
| #' Defaults to `everything() ~ "descending"`. | ||
| #' @param sort_col \cr |
There was a problem hiding this comment.
after the argument name, we put the expected type of input. maybe that is causing your latex issue
There was a problem hiding this comment.
okay,thanks for the hint.
Code Review1. Committed
|
Signed-off-by: Daniel Sjoberg <danield.sjoberg@gmail.com>
|
Thanks for the comments @ddsjoberg |
…to ard_sort merged main into ard_sort
Signed-off-by: Eric Odongo <65663507+rikoprogrammer@users.noreply.github.com>

Propose to add the ability to sort an ard based on a particular treatment column
NEWS.md. (Feature Request: sort_ard_hierarchical #548, @)There was a need to sort hierarchical tables based on one of the treatment columns eg Placebo. The current function sorts by getting the sum across all the treatment columns. So I proposed if we can get an extra argument in the function that can be used for this purpose.
Close issue #548 .
Pre-review Checklist (if item does not apply, mark is as complete)
usethis::pr_merge_main(): yesdevtools::test_coverage():completeReviewer Checklist (if item does not apply, mark is as complete)
pkgdown::build_site(). Check the R console for errors, and review the rendered website.devtools::test_coverage()When the branch is ready to be merged:
NEWS.mdwith the changes from this pull request under the heading "# cards (development version)". If there is an issue associated with the pull request, reference it in parentheses at the end update (seeNEWS.mdfor examples).Optional Reverse Dependency Checks:
Install
checkedwithpak::pak("Genentech/checked")orpak::pak("checked")