-
Notifications
You must be signed in to change notification settings - Fork 50
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
Comments
@shajoezhu any movement about this |
ah, sorry, missed this thread. would the expected results be "hiya I'm a title!"? or should this throw an error, as we could treat tbl[integer(), , keep_titles = TRUE] as an empty table? null table? @BFalquet @Melkiades @edelarua any thoughts? I think we should have "hiya I'm a title!", as if we prune or trim a table, and as the results, it has zero rows, title and footnotes, these should return values. right? if this is the case, this is a bug, and we can take care of this. Thanks |
I would keep all decorators, even if it is a 0-rows table |
I would keep all decorators as well. |
The code should do whatever the arguments say (e.g. keep_titles = TRUE vs FALSE). There are times when the title, top-left, etc is no longer appropriate when subsetting rows, and there are times when it is. My point is that I told it to keep titles and it didn't, which is a bug. |
all agreed. its a bug |
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:The text was updated successfully, but these errors were encountered: