-
Notifications
You must be signed in to change notification settings - Fork 209
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
looping with lubridate and dplyr causes r to crash. #330
Comments
I cannot reproduce. You are using old lubridate. Please try the github version. Also please try in plain R. |
I can reproduce this even with development versions of lubridate and dplyr. Happens in both 32 and 64 bit R, as well as in RStudio and base R. I started having this problem a couple weeks ago, possibly after updating one of the packages. One thing I noticed is that rsession.exe stays constant around 17% CPU usage and memory usage increases at a steady rate of about 200 KB/sec. It takes a few minutes before the R session actually crashes on me. Session info:
|
Per a suggestion in the original Stack Overview thread, I reinstalled Rccp. Voila! It works! As long as I don't close the R session. As soon as I restart it, the code causes a crash again. |
Modifying the code to perform the operation using data.table eliminates the error for me.
Session info:
|
Could you please isolate the error? Do I understand correctly that the crash happens in the |
I don't think the error is in lubridate. I downgraded dplyr to 0.4.1 and the code ran without a problem. Possibly related to this problem (Stack Overflow report)?
|
I second the conclusion that the problem is in dplyr. I found this thread also thinking I had a problem with lubridate. I was getting weird hard crashes and knitting a word document in RMarkdown consistently failed on the same dplyr string containing a call to lubridate. Following besoltoff to the issue report in dplyr led me to downgrade dplyr. This also fixed it for me. |
I'm getting the same problem. Appears that lubridate and dplyr are frenemies at this point. I end up having to keep them separate-can't include functions from both packages in the same piping. |
I have a similar problem that I reported here: tidyverse/dplyr#1288 and here https://support.rstudio.com/hc/communities/public/questions/204539018-R-studio-is-crashing-with-dplyr-cod |
This is likely to be dplyr related not lubridate. Get the dev version of dplyr |
I can consistently get R to crash with the following code.
See the Stackoverflow question that lead to this issue: http://stackoverflow.com/questions/30925313/dplyr-and-lubridate-chain-crashing-r?noredirect=1#comment49933044_30925313
Session info:
Rstudio Log file error:
The text was updated successfully, but these errors were encountered: