Cannot compile Stan program from R package brms

Hi Kris,

I struggled with the same issue on my computer for days and it turned out to be an issue with using the newest version of R along with rstan and brms. I had to uninstall R, reinstall version R 4.1.3, then run the code below for installation. After I did that, it worked just fine.

#install.packages("StanHeaders", repos = c("https://mc-stan.org/r-packages/", getOption("repos")))
#install.packages("rstan", repos = c("https://mc-stan.org/r-packages/", getOption("repos")))
#install.packages("brms")
#install.packages("httpuv")
#install.packages("StanHeaders")
#install.packages("shinystan")
#install.packages("igraph", type="binary")

Hi @matt-hyde-s,

Thanks for your comment. I am just back from holidays. I did not try your code yet, but it would not explain why I can install packages from source on my personal laptop [which has R4.3.1], while I cannot install packages from source on my work laptop [which also has R4.3.1].
I think that the core of the problem is not in brms or stan per se, but in my inability to install packages from source on my work laptop.