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

view() errors when handling view_max for tbl_lazy objects #954

Closed
cole-johanson opened this issue Sep 14, 2021 · 2 comments
Closed

view() errors when handling view_max for tbl_lazy objects #954

cole-johanson opened this issue Sep 14, 2021 · 2 comments

Comments

@cole-johanson
Copy link

As of tibble_3.1.4, it looks like view() requires a manual option (tibble.view_max) in order to handle tbl_lazy objects. As a workaround, I have added this to my .Rprofile, but it would be beneficial to add this option on load.

library(tidyverse)
mf <- dbplyr::memdb_frame(g = c(1, 1, 2, 2, 2), x = 1:5, y = 5:1)
mf %>% view()
#> Error: `n` must be a non-negative integer
#> Run `rlang::last_error()` to see where the error occurred.
options(tibble.view_max=1000)
mf %>% view()

(reprex() is not returning the error, so I manually copied this in)

@krlmlr
Copy link
Member

krlmlr commented Sep 26, 2021

Thanks, should be fixed now, releasing to CRAN today.

@krlmlr krlmlr closed this as completed Sep 26, 2021
@github-actions
Copy link
Contributor

This old thread has been automatically locked. If you think you have found something related to this, please open a new issue and link to this old issue if necessary.

@github-actions github-actions bot locked and limited conversation to collaborators Sep 27, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants