Updated RStudio now can't install rstan

Hi,

I updated RStudio and now following the RStan installation instructions fail with the below code. Seems to be something to do with RcppEigen, which also can’t be installed separately. Does anybody know how to fix this?

clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [RcppEigen.so] Error 1
ERROR: compilation failed for package ‘RcppEigen’
* removing ‘/Library/Frameworks/R.framework/Versions/4.2/Resources/library/RcppEigen’
Warning in install.packages :
  installation of package ‘RcppEigen’ had non-zero exit status
ERROR: dependency ‘RcppEigen’ is not available for package ‘StanHeaders’
* removing ‘/Library/Frameworks/R.framework/Versions/4.2/Resources/library/StanHeaders’
Warning in install.packages :
  installation of package ‘StanHeaders’ had non-zero exit status
ERROR: dependencies ‘StanHeaders’, ‘RcppEigen’ are not available for package ‘rstan’
* removing ‘/Library/Frameworks/R.framework/Versions/4.2/Resources/library/rstan’
Warning in install.packages :
  installation of package ‘rstan’ had non-zero exit status

This kind of thing is very challenging for us to debug remotely because we don’t know what state things were in before or after. We haven’t seen other error reports that the new RStudio’s breaking things, so the problem is likely caused by something else.

You can’t uninstall and reinstall RcppEigen independently of RStan?

P.S. You might find cmdstanr easier to install and manage than RStan—there are fewer binary dependencies. It also keeps up with the Stan releases, whereas the trip through CRAN invariably delays RStan.