Crash Information:
Description of crash -
I initially discovered this while going through one of the tidymodels tutorials, but reduced it to a smaller reproducible example.
Steps to reproduce -
Run the following code in RStudio.
library(nycflights13)
d <- flights[c("arr_delay", "air_time", "distance")]
d$arr_delay <- as.factor(ifelse(d$arr_delay >= 30, "late", "on_time"))
m <- glm(arr_delay ~ ., family = binomial(), data = d)
Created on 2020-06-07 by the reprex package (v0.3.0)
The last line crashes the R session when executed in RStudio.
The code example runs without crashing in an R console outside of RStudio.
System Information:
sessionInfo()
R version 4.0.0 (2020-04-24)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Ubuntu 20.04 LTS
Matrix products: default
BLAS: /usr/lib/x86_64-linux-gnu/openblas-pthread/libblas.so.3
LAPACK: /usr/lib/x86_64-linux-gnu/openblas-pthread/liblapack.so.3
locale:
[1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C LC_TIME=en_US.UTF-8 LC_COLLATE=en_US.UTF-8 LC_MONETARY=en_US.UTF-8
[6] LC_MESSAGES=en_US.UTF-8 LC_PAPER=en_US.UTF-8 LC_NAME=C 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 base
other attached packages:
[1] reprex_0.3.0
loaded via a namespace (and not attached):
[1] Rcpp_1.0.4.6 ps_1.3.3 digest_0.6.25 R6_2.4.1 evaluate_0.14 rlang_0.4.6 fs_1.4.1 callr_3.4.3 whisker_0.4
[10] rmarkdown_2.2 tools_4.0.0 xfun_0.14 yaml_2.2.1 compiler_4.0.0 processx_3.4.2 clipr_0.7.0 htmltools_0.4.0 knitr_1.28
Edit:
This is RStudio Version 1.3.959.