-
Notifications
You must be signed in to change notification settings - Fork 5
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
Subscript out of bounds error from tbl data frame above 20 rows #4
Comments
Sorry, but nobody actively develops the package nowadays. If you want this to be fixed I'm afraid you'll have to debug it yourself. There's probably something that |
For what it's worth, the cause of the error is:
HTML.data.frame - reasonably, IMO - assumes that both are equal, but tibble:::format.tbl_df() shortens it beyond 20 rows (and formats it is a way that does not immediately make any sense to me). HTML(data.frame(df)) works. |
Explicitly coercing |
Thanks for the diagnosis! One way of solving this which sounds relatively safe would be to define a separate method for tibbles: HTML.tbl_df <- function(x, ...) HTML(data.frame(x), ...) |
I'm getting a subscript out of bounds error when I try to insert a data frame tbl with more than 20 rows into an html document.
The above example errors with:
Error in x.formatted[i, ] : subscript out of bounds
Removing the
tbl_df()
works as expected.Session info:
The text was updated successfully, but these errors were encountered: