Hello, stan community!

Additional discussion on problem I am dealing with could be found there

I am trying to run classical r-stan example from this official tutorial. But I can’t because I get the following error message:

Ben Goodrich suggested to set Sys.setenv(USE_CXX14=1) and include the following lines to Makevars file:

CXX14=g++

CXX14FLAGS=-O3

But I still get the same error message. I also have been trying to install.packages(“https://win-builder.r-project.org/OdTz9MCBT96j/rstan_2.18.1.zip”, repos = NULL) but then I can’t run library(‘rsatn’) as I get:

Error: package or namespace load failed for ‘rstan’ in rbind(info, getNamespaceInfo(env, “S3methods”)):

number of columns of matrices must match (see arg 2)

Please help me to figure out this problem.

Will be very greatfull for help!