I am currently building an R package with rstantools and I notice that the compilation of stan files became very slow since I moved to R4.0.
I built the R package with rstantools a year ago and I was able to install the package following the vignette within 5 minutes, either on Mac or Windows.
A year later, with now R 4.0.3 and RbuildTools 4.0, the compilation was still running after 2 hours…
Today, I have just tried to build a simple lm package with the vignette and it was still running after 30 minutes while before it was compiling in a few seconds.
I really don’t know where the problem is. Any help is welcome !
N.B : Hopefully, my Mac is still under R 3.6.3 and I can compile there in a few minutes but I would like to solve this problem with R 4.0.