I'm trying installing rstan using
install.packages('rstan')
It gets laggy and then automatically closes Rstudio. I have tried
install.packages(c("BH", "StanHeaders", "Rcpp", "RcppEigen", "RcppParallel", "inline", "loo", "pkgbuild")) but that didn't help.
I'm using Ubuntu 22.04.2 LTS.
What else could I try?