Have to work with lots of error on Stan, this is what I got when compiling. Please help me to solve this:
**Error in file(con, "r") : cannot open the connection
In addition: Warning messages:
1: In system(cmd, intern = !verbose) :
running command 'C:/PROGRA~1/R/R-40~1.2/bin/x64/R CMD SHLIB file2aa871844643.cpp 2> file2aa871844643.cpp.err.txt' had status 1
2: In file(con, "r") :
cannot open file 'file2aa871844643.cpp.err.txt': No such file or directory
Error in sink(type = "output") : invalid connection**
If possible, add also code to simulate data or attach a (subset of) the dataset you work with.
Don’t forget to add relevant tags to your topic (top right of this form) especially for application area. Delete this text before posting your question :-) Thx!
If your question relates to installation please provide the following information:
Operating System
RStan Version
Output of writeLines(readLines(file.path(Sys.getenv("HOME"), ".R/Makevars")))
After that, I complied my program again, but having the same error as earlier.
Error in file(con, “r”) : cannot open the connection
In addition: Warning messages:
1: In system(cmd, intern = !verbose) :
running command ‘C:/PROGRA~1/R/R-40~1.2/bin/x64/R CMD SHLIB file2c587e151aa4.cpp 2> file2c587e151aa4.cpp.err.txt’ had status 1
2: In file(con, “r”) :
cannot open file ‘file2c587e151aa4.cpp.err.txt’: No such file or directory
Error in sink(type = “output”) : invalid connection
Error in file(con, “r”) : cannot open the connection
In addition: Warning message:
In file(con, “r”) :
cannot open file ‘file2c581a232c8d.cpp.err.txt’: No such file or directory
file2c585b18381.cpp:375:1452: note: cannot convert ‘stan::math::array_builder::array() with T = stan::math::var’ (type ‘std::vectorstan::math::var’) to type ‘const std::vector&’