Hi,
I did as suggested in stan wiki:
git clone https://github.com/stan-dev/cmdstan.git --recursive
make build -j4
It said that CmdStan v2.18.0 built.
Then I tried to build my model by typing make tmp/foo.exe in the command prompt and was able to build the model. However, when from R I tried
system(“make tmp/foo.exe”) I got
Assembler messages:
Fatal error: no compiled in support for x86_64
I found the problem. When I type path from command prompt I get
PATH=c:\Rtools\bin;c:\Rtools\mingw_64\bin;…
However, system(“m.bat”) where m.bat contains only one line set returns
Path=c:\Rtools\bin;c:\Rtools\mingw_32\bin;…
Can somebody suggest how to make R to get the correct path?