This PR adds the changes to build flags that are needed for compatibility with the upcoming release of rstan. These changes include adding compiler & linker flags needed for working with StanHeaders >= 2.26, namely the addition of the TBB (RcppParallel).
Additionally, this PR adds a compiler flag to your Makevars files which is needed for compatibility with the upcoming version of rstan: -DUSE_STANC3
The Stan-to-c++ transpiler (stanc) was refactored after 2.21, and so different c++ is used in the new rstan package (>= 2.26). Because of this, the flag -DUSE_STANC3 needs to be added when a stan model is being run using the new rstan package (and the new stanc implementation).
Feel free to let me know if you need any more info.
Hi,
This PR adds the changes to build flags that are needed for compatibility with the upcoming release of rstan. These changes include adding compiler & linker flags needed for working with
StanHeaders
>= 2.26, namely the addition of the TBB (RcppParallel
).Additionally, this PR adds a compiler flag to your
Makevars
files which is needed for compatibility with the upcoming version ofrstan
:-DUSE_STANC3
The Stan-to-c++ transpiler (
stanc
) was refactored after 2.21, and so different c++ is used in the newrstan
package (>= 2.26). Because of this, the flag-DUSE_STANC3
needs to be added when a stan model is being run using the new rstan package (and the new stanc implementation).Feel free to let me know if you need any more info.
Thanks! Andrew