I have updated R, Rstudio, and rstan to the latest version, following the guideline here.
After installing, for the first time of running, rstan asks for C++
`C++14 standard requested but CXX14 is not defined Stan’
I did a google search and change the Makevars file from
CXX14FLAGS=-O3 -march=native -mtune=native
CXX11FLAGS=-O3 -march=native -mtune=native
CXX14 = C:/RBuildTools/3.5/mingw_64/bin/g++
CXX14FLAGS = -O3 -Wno-unused-variable -Wno-unused-function
After this changing, Stan runs properly for several examples (I make to check). The first example is very simple: I generate Y from N(mu=0, sigma=1) and estimate these parameters.
However, when I run for a bigger model, involving multi_normal and matrix_exp, Stan has an error
Error in unserialize(socklist[[n]]) : error reading from connection
Error in serialize(data, node$con, xdr = FALSE) :
error writing to connection
Note that this model I can run before with the previous versions of R, Rstudio, and rstan.
Could you give me a help?
P/S: I upload the Rcode and Stan program here for the simple model. I cannot send the Stan program for the one that Stan has error since we are still working on that before publishing.