Dplyr: RStudio crash instead of error with dplyr 0.5.0

Created on 29 Jun 2016  Â·  10Comments  Â·  Source: tidyverse/dplyr

The following example will crash RStudio when using 32-bit R 3.3.1 and dplyr 0.5.0. When running the same code on the 64-bit side I get the expected "Error: non-numeric argument to binary operator"

dat <- data_frame(id = seq(1, 3), expns = c("2.1", "3.4", "4.2"))
dat <- dat %>%
mutate(expns <- expns * -1)

A number of other similar scenarios will trigger a crash rather than the expected error message when using 32-bit R.

All 10 comments

Does it help if you reinstall both dplyr and its dependencies? E.g.

db <- available.packages()
deps <- tools::package_dependencies("dplyr", db = db)$dplyr
install.packages(deps)
install.packages("dplyr")

Chiming in to confirm the same experience as @arestrom but with a different scenario.

data(iris)
library(dplyr)
sessionInfo()

R version 3.3.1 (2016-06-21)
Platform: i386-w64-mingw32/i386 (32-bit)
Running under: Windows 7 x64 (build 7601) Service Pack 1

locale:
[1] LC_COLLATE=English_United States.1252  LC_CTYPE=English_United States.1252    LC_MONETARY=English_United States.1252
[4] LC_NUMERIC=C                           LC_TIME=English_United States.1252    

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
[1] dplyr_0.5.0

loaded via a namespace (and not attached):
[1] magrittr_1.5    R6_2.1.2        assertthat_0.1  rsconnect_0.4.3 DBI_0.4-1       tools_3.3.1     tibble_1.0      Rcpp_0.12.5   
iris %>% filter(WrongVariable > 100)
This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.

Reinstalling both dplyr and its dependencies via the method above does not resolve this issue.

Unfortunately it still crashes after reinstalling. Prior to submitting the
issue I did a clean install of R, RStudio, RTools. The suggested reinstall
did not fix the issue.

On Wed, Jun 29, 2016 at 8:48 AM, Kevin Ushey [email protected]
wrote:

Does it help if you reinstall both dplyr and its dependencies? E.g.

db <- available.packages()
deps <- tools::package_dependencies("dplyr", db = db)$dplyr
install.packages(deps)
install.packages("dplyr")

—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/hadley/dplyr/issues/1983#issuecomment-229399443, or mute
the thread
https://github.com/notifications/unsubscribe/ACpc0wrlQ4_1vZKHxLtLA-7z6DLTlf_Rks5qQpPagaJpZM4JBQ8H
.

Thanks for testing -- I'm guessing that this is a bad interaction with the new toolchain used to build R 3.3.0 + RStudio. I'll file an issue on the RStudio side to further investigate.

Are you able to switch to R 64bit in the interim?

Thanks...no worries. I do need to use 32-bit for some DBs, but can work
around this..

On Wed, Jun 29, 2016 at 11:10 AM, Kevin Ushey [email protected]
wrote:

Thanks for testing -- I'm guessing that this is a bad interaction with the
new toolchain used to build R 3.3.0 + RStudio. I'll file an issue on the
RStudio side to further investigate.

Are you able to switch to R 64bit in the interim?

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/hadley/dplyr/issues/1983#issuecomment-229440669, or mute
the thread
https://github.com/notifications/unsubscribe/ACpc06gKs0piISorUFNl9wcOVYXq9wlrks5qQrUygaJpZM4JBQ8H
.

The same issue is present in the interaction between R 3.3.1 and RStudio. Thanks for investigating.

Unfortunately, Rcpp_eval (which is supposed to act like a safe version of Rf_eval for C++ contexts) currently does not work in this specific combination (RStudio + Windows + R >= 3.3.0 32bit).

For now, you'll need to use the 64bit version of R (which, assuming you're running a 64bit version of Windows, is likely preferred anyhow); still, hopefully we'll be able to figure this out on the RStudio side.

That would be great, because I just have a 32bit Windows-OS.

@sjPlot please try out the RStudio preview release where this problem should now be fixed

Yes, thanks to you at RStudio, works again now!

Was this page helpful?
0 / 5 - 0 ratings