Rstantools: very slow compilation with R 4.0

Thank you @rok_cesnovar for your answer.

Do you mean a long list of warnings? That is expected and those could be silenced but how to silence them depends on which of them pop up.

Indeed, a long list of not clear warnings but maybe these cannot be avoided. One can have a look with the command:

devtools::install_github('kabarigou/StanMoMo')

What you could do is prebuild the package for Windows/Mac using Github Actions so the installation would be really fast for your users. They would get the same experience as if the package was on CRAN.

That would be awesome ! How can I do this ? Should I simply run the command

R CMD INSTALL --build namepackage.tar.gz

on a Windows and Mac computer and then put these binaries in the repository ?

Thanks in advance for your help !

N.B : I think it would be useful to add a vignette somewhere explaining how to build Windows and Mac binaries to avoid compilation of users installing packages from source. This point was already asked in different posts (see here for instance) and this can be really helpful for users of Stan.