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():ing an emptly tibble originating from vroom crashes Rstudio server session #253

Closed
OssiLehtinen opened this issue Aug 5, 2020 · 0 comments
Labels
bug an unexpected problem or unintended behavior

Comments

@OssiLehtinen
Copy link

OssiLehtinen commented Aug 5, 2020

I'm running R-workloads on the open source rstudio-server with vroom and have encountered an issue with empty tibbles.

I'm not sure if this is an rstudio-issue, or a vroom issue, but seems to be pretty specific to vroom, so posting here.

The following code crashes the rserver-session every time:

aa <- data.frame(b = 1:3, c=letters[1:3])
write.csv(aa, "small_data.csv")
tt <- vroom::vroom("small_data.csv")
tt # Contents printed out nicely
View(tt) # Contents displayed ok

ttt <- tt[FALSE,]
ttt # Empty tibble printed out ok
View(ttt) # R crashes

This happens also if I use dplyr's filter to produce the empty tibble, but the above example aims to have minimal other dependencies.

My R-version is 3.6.2
rstudio-server is 1.2.5033 running on debian 10
vroom is at 1.2.1 (1.2.0 has the same issue)

Note: an empty data.frame is displayed ok with View as is an empty tibble not produced by Vroom:

aa <- data.frame(b = 1:3, c=letters[1:3])
aaa <- aa[FALSE, ]
View(aaa) # this works

aa <- tibble::tibble(b = 1:3, c=letters[1:3])
aaa <- aa[FALSE, ]
View(aaa) # this also works

p.s. rstudio on a windows desktop does not crash. (rstudio desktop 1.2.5019, R 3.5.3, vroom 1.2.0)

@jimhester jimhester added the bug an unexpected problem or unintended behavior label Aug 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug an unexpected problem or unintended behavior
Projects
None yet
Development

No branches or pull requests

2 participants