-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New gtsummary #214
New gtsummary #214
Conversation
@@ -29,8 +29,8 @@ jobs: | |||
- {os: ubuntu-latest, r: 'release'} | |||
- {os: ubuntu-latest, r: 'oldrel-1'} | |||
- {os: ubuntu-latest, r: 'oldrel-2'} | |||
- {os: ubuntu-latest, r: 'oldrel-3'} | |||
- {os: ubuntu-latest, r: 'oldrel-4'} | |||
# - {os: ubuntu-latest, r: 'oldrel-3'} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
gsummary is using the base R pipe and the |> foo(x = _)
, so it doesn't work on 4 previous releases anymore. But we'll get back to it soon enough :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok sounds good!
@@ -37,6 +37,7 @@ Suggests: | |||
rmarkdown (>= 2.22), | |||
spelling (>= 2.2.1), | |||
testthat (>= 3.1.9) | |||
Remotes: ddsjoberg/gtsummary |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Before you send to CRAN, you'll need to remove this line
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
got it, thanks for the heads up!
@@ -1,1571 +1,92 @@ | |||
# style_xxx works with tbl_ae family | |||
|
|||
Code | |||
as_gt(t1, id = "t1_001") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It turns out the raw HTML from gt built tables changes slightly pretty often. I changed this to a data frame. But we are no longer testing the spanning headers FYI
@@ -263,7 +263,7 @@ test_that("tbl_ae() works", { | |||
) | |||
expect_equal( | |||
as_tibble(tbl, col_labels = FALSE)$stat_1, | |||
c("2.0 / 3.0 (66.67%)", "2.0 / 3.0 (66.67%)", "0.0 / 3.0 (0.00%)") | |||
c("2.0 / 3.0 (66.67%)", "2.0 / 3.0 (66.67%)", "0.0 / 3.0 (0%)") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I checked this and the change I made here is also consistent with the last version of the gtsummary package. I don't know why it was previously 0.00%
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you are the best!! all of this looks great, thank you so much.
one thing i'd like to better understand & discuss in a f2f is tbl_summary
vs tbl_reg_summary
and inheritParams
. Also, themes & tbl_reg_summary
@@ -29,8 +29,8 @@ jobs: | |||
- {os: ubuntu-latest, r: 'release'} | |||
- {os: ubuntu-latest, r: 'oldrel-1'} | |||
- {os: ubuntu-latest, r: 'oldrel-2'} | |||
- {os: ubuntu-latest, r: 'oldrel-3'} | |||
- {os: ubuntu-latest, r: 'oldrel-4'} | |||
# - {os: ubuntu-latest, r: 'oldrel-3'} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok sounds good!
@@ -37,6 +37,7 @@ Suggests: | |||
rmarkdown (>= 2.22), | |||
spelling (>= 2.2.1), | |||
testthat (>= 3.1.9) | |||
Remotes: ddsjoberg/gtsummary |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
got it, thanks for the heads up!
@@ -263,7 +263,7 @@ test_that("tbl_ae() works", { | |||
) | |||
expect_equal( | |||
as_tibble(tbl, col_labels = FALSE)$stat_1, | |||
c("2.0 / 3.0 (66.67%)", "2.0 / 3.0 (66.67%)", "0.0 / 3.0 (0.00%)") | |||
c("2.0 / 3.0 (66.67%)", "2.0 / 3.0 (66.67%)", "0.0 / 3.0 (0%)") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok!
We'll have a lil powwow about it in seattle ;) |
What changes are proposed in this pull request?
Checklist for PR reviewer
renv::install()
_pkgdown.yml
pkgdown::build_site()
. Check the R console for errors, and review the rendered website.covr::report()
. Before you run, setSys.setenv(NOT_CRAN="true")
and begin in a fresh R session without any packages loaded.usethis::use_spell_check()
runs with no spelling errors in documentationNEWS.md
been updated with the changes from this pull request under the heading "# gtreg (development version)
". If there is an issue associated with the pull request, reference it in parentheses at the end update (seeNEWS.md
for examples).usethis::use_version(which = "dev")