Andrew Johnson

Results 456 comments of Andrew Johnson

What version of `g++` do you have installed?

@cse387 Can you clarify what your issue is? You're installing rstan on windows in R3.6 and receiving the error: ```r ...library/BH/include/boost/math/tools/complex.hpp:50:44: error: ‘double’ is not a class, struct, or union...

Can you post the R command that you're running and the full error output that's being returned?

Can I get you to try the preview of the next RStan version to see if the problem still exists: ```r remove.packages(c("StanHeaders", "rstan")) install.packages("StanHeaders", repos = c("https://mc-stan.org/r-packages/", getOption("repos"))) install.packages("rstan", repos...

Are you able to run the rstan example model: ```r example(stan_model,package="rstan",run.dontrun=T) ```

Additionally, it looks like the crashes don't occur if I manually trigger a garbage collection between each ```brms``` run: ``` options(mc.cores=4) library(brms) load("test_brm.RData") out = do.call(brm,test_brm) gc() out = do.call(brm,test_brm)...

An example of this crashing behaviour using just RStan-only code also recently popped up on the forums: https://discourse.mc-stan.org/t/random-but-consistent-c-stack-error-on-windows-10/17799/4

Tuples are currently a WIP over on the `stanc3` github, see this PR for more info: https://github.com/stan-dev/stanc3/pull/675

These errors indicate that R isn't compiling in c++14 mode, you need to configure the package (if it's yours) to call the CXX14 compiler when installing

To fix this, follow the instructions in the [Getting Started guide here](https://github.com/stan-dev/rstan/wiki/Configuring-C---Toolchain-for-Windows#makevars-configuration)