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
Zero-row nested tibbles generate spurious warnings when knitted into html_document or html_notebook documents #8898
Comments
|
@davidski Thank you for raising this! I can reproduce this in
We'll review this issue as we continue to work on improving RStudio. Note: I can only reproduce this with html_notebook. |
|
Simpler reprex: Most likely coming from here somewhere: rstudio/src/cpp/session/modules/NotebookData.R Lines 159 to 354 in eb4205c
|
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs, per https://github.com/rstudio/rstudio/wiki/Issue-Grooming. Thank you for your contributions. |
|
This issue still exists under RStudio 1.4.1725 and is accepted by the team as reproducible. Please don't close this issue out as stale as it is still relevant and needs attention. |
Follow up on RStudio Community thread - https://community.rstudio.com/t/warnings-when-knitting-zero-row-nested-tibbles/95164
System details
Steps to reproduce the problem
Embed the following reprex code in a fresh RMarkdown notebook and knit to
html_documentorhtml_notebookCreated on 2021-02-04 by the reprex package (v1.0.0)
Session info
Describe the problem in detail
If a nested tibble is filtered to zero rows and then printed in a knitted html (notebook or doument) context, a spurious warning message is generated reading:
Warning messages: 1: In [<-.data.frame(tmp, is_list, value = list(11 = "<>")) : replacement element 1 has 1 row to replace 0 rowsThis may be related to #7546 and #7562.
Describe the behavior you expected
A zero-length tibble is printed without warnings (or other errors).
The text was updated successfully, but these errors were encountered: