Skip to content
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

Fix the warning when colname_spannersub is used in as_gt() #495

Merged
merged 1 commit into from
Jan 23, 2025

Conversation

yihui
Copy link
Contributor

@yihui yihui commented Jan 11, 2025

Fixes #339.

@yihui yihui marked this pull request as draft January 11, 2025 21:46
…sis"` instead of taking the value `colname_spannersub[2]`
@yihui yihui marked this pull request as ready for review January 12, 2025 06:12
Copy link
Collaborator

@jdblischak jdblischak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I confirmed locally that the warning is removed when building the package from this branch:

library("gsDesign2")
library("magrittr")

gs_power_wlr(lpar = list(sf = gsDesign::sfLDOF, total_spend = 0.1)) %>%
  summary() %>%
  as_gt(
    colname_spanner = "Cumulative probability to cross boundaries",
    colname_spannersub = c("under H1", "under H0")
  )

@yihui
Copy link
Contributor Author

yihui commented Jan 22, 2025

@LittleBeannie Just a gentle reminder that this PR can be merged :)

@LittleBeannie LittleBeannie merged commit 98f1234 into Merck:main Jan 23, 2025
7 checks passed
@yihui yihui deleted the fix-339 branch January 23, 2025 23:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

No non-missing arguments to max; returning -Inf
3 participants