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

keep_titles, etc not respected when selecting zero rows via [ #870

Open
gmbecker opened this issue May 21, 2024 · 0 comments
Open

keep_titles, etc not respected when selecting zero rows via [ #870

gmbecker opened this issue May 21, 2024 · 0 comments
Labels

Comments

@gmbecker
Copy link
Collaborator

keep_titles works (and, I imagine, the other rtables specific args to [) if we select at least one row, but not if we select zero rows:

lyt <- basic_table(title = "hiya I'm a title!") %>%
    split_rows_by("ARM") %>%
    analyze("AGE")

tbl <- build_table(lyt, ex_adsl)
> main_title(tbl[1, , keep_titles = TRUE])
[1] "hiya I'm a title!"
> main_title(tbl[integer(), , keep_titles = TRUE])
[1] ""
@shajoezhu shajoezhu added the sme label Nov 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants