-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
dplyr 0.4.2 crashes R (reproducible) #1316
Comments
Please try the dev version. |
Thanks for the quick reply. I'd love to try it out, but it appears to be impossible to get Hence I'm unable to build the packages |
I'm pretty sure this has been fixed. |
I beg to differ. ;o) I also looked around on how to fix this issue and get
|
I meant I'm pretty sure the issue is fixed in the dev version of |
FWIW it Works fine for me:
|
Great, thanks for testing it! |
Additional update: It works fine on my Mac using |
0.4.2 crashes for me reproducibly on Linux - please push a new release to CRAN as soon as possible. |
0.4.2 crashes for me in several scripts that before worked ok. I use Windows 10 Rstudio 0.99.467 and R 3.2.1. I should migrate code |
Version 0.4.3 solves this issue. Thanks for the great work! |
I am using dplyr to do a bind_rows. I have to load plyr first, because I need to mutate first and the dplyr mutate gives me the "Error: not compatible with STRSXP". I do my plyr mutate first, then load dplyr, then try to bind_rows. Calling head() on any object from that point shuts down both R (3.2.2) and RStudio (0.99.486). I am using dplyr 0.4.3. My os is Windows 10. |
Hi!
Unfortunately I have encountered what appears to be a bug in the latest version of dplyr (0.4.2. from CRAN). I did not encounter this issue until I updated dplyr earlier this week to reap the benefits of its improved handling of label attributes when dealing with imported SPSS data. Since the update running scripts that worked flawlessly earlier will crash R (3.1.3) as well as RStudio 0.99.441 reproducibly.
Here is some data that (using the below code) crashes R: https://app.box.com/s/jqhbpsr9ufa8xa9dwscdhwv9z93dsunk
The code:
load("data.Rdata")
library(dplyr)
data2 <- data %>% mutate_each(funs(removeNAs = ifelse(is.na(.), 0, .)), -gid, -plr_id, -plr_name)
head(data2)
Interestingly enough, it's not the
mutate_each()
that crashes but thehead()
(or whatever command is issued on themutate_each()
'd data first).I then tried to narrow the problem down, which led me even deeper down the rabbit hole... I tried to use
slice()
to figure out whether a single row in the data is making trouble,like so (note that there are 447 rows indata
):data2 <- slice(data, 1:100)
data2 <- data %>% mutate_each(funs(removeNAs = ifelse(is.na(.), 0, .)), -gid, -plr_id, -plr_name)
head(data2)
It appears to work for a few slices but crashes on others. But I have not been able to narrow it down to single rows that cause the crash. For example
100:120
as well as110:130
worked, but115:125
(which contains only data from the other two slices) crashed.I think this is a very strange error for three reasons:
Here's my
sessionInfo()
:R version 3.1.3 (2015-03-09)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 7 x64 (build 7601) Service Pack 1
locale:
[1] LC_COLLATE=German_Germany.1252 LC_CTYPE=German_Germany.1252
[3] LC_MONETARY=German_Germany.1252 LC_NUMERIC=C
[5] LC_TIME=German_Germany.1252
attached base packages:
[1] stats graphics grDevices utils datasets methods base
I'd be grateful if somebody knowledgeable could look into this and would be happy to provide more details.
Kind regards,
Konstantin
The text was updated successfully, but these errors were encountered: