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

RStudio crashes when creating an effects plot (after update to R 4.1.0) #9395

Closed
ghost opened this issue May 22, 2021 · 1 comment
Closed

Comments

@ghost
Copy link

ghost commented May 22, 2021

RStudio crashes when I start it and then run the following code:

library(effects)
Y <- rnorm(50)
X <- rexp(50)
plot(allEffects(lm(Y~X)))

The same code runs fine if I

  • run it just in a terminal window outside of RStudio
  • put it into a Rmd and knit it into an HTML file.

I just updated to R 4.1.0, after which I also updated all packages with
update.packages(ask=FALSE, checkBuilt=TRUE)

My session info:

sessionInfo()
R version 4.1.0 (2021-05-18)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Pop!_OS 20.10 (an Ubuntu derivative)
Matrix products: default
BLAS: /usr/lib/x86_64-linux-gnu/openblas-pthread/libblas.so.3
LAPACK: /usr/lib/x86_64-linux-gnu/openblas-pthread/libopenblasp-r0.3.10.so
locale:
[1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C
[3] LC_TIME=en_US.UTF-8 LC_COLLATE=en_US.UTF-8
[5] LC_MONETARY=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8
[7] LC_PAPER=en_US.UTF-8 LC_NAME=C
[9] LC_ADDRESS=C LC_TELEPHONE=C
[11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C
attached base packages:
[1] stats graphics grDevices utils datasets methods compiler
[8] base
other attached packages:
[1] effects_4.2-0 carData_3.0-4 magrittr_2.0.1
loaded via a namespace (and not attached):
[1] Rcpp_1.0.6 lattice_0.20-44 MASS_7.3-54 grid_4.1.0
[5] DBI_1.1.1 nlme_3.1-152 survey_4.0 estimability_1.3
[9] minqa_1.2.4 nloptr_1.2.2.2 Matrix_1.3-3 boot_1.3-28
[13] splines_4.1.0 lme4_1.1-27 survival_3.2-11 colorspace_2.0-1
[17] mitools_2.4 insight_0.14.0 nnet_7.3-16

My RStudio version: 1.4.1668

Any thoughts? Am I missing something obvious?

Thanks for any input you might have!

@jmcphers
Copy link
Member

This is a known issue with R 4.1, and is addressed in our preview release (which will be released shortly):

https://www.rstudio.com/products/rstudio/download/preview/

See #9373 for more information.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant