Brms inside Rmarkdown: "R CMD SHLIB foo.c" fails

I am cleaning an Rmarkdown file for publication, and I got this error message when compiling the model with brms 213.5, rstan 2.21.2 and R 4.0.2 on Arch Linux. gcc seems to fail to compile foo.c, but then in the next message the sampling is beginning. I guess the message is harmless, but how can I get rid of it?

This page here has pretty much the same error:

https://rstudio-pubs-static.s3.amazonaws.com/621934_901496ab496045d1a7ec791cad889ae7.html

I think it will be OK if you install the newest StanHeaders from CRAN.

1 Like