I am getting an error as below when trying to compile stan code. I can however see the Eigen.hpp file in that path. Does anyone know why is this happening? I have tried both RStudio and R console directly, but same error.
Compilation ERROR, function(s)/method(s) not created!
Error in compileCode(f, code, language = language, verbose = verbose) :
cc1plus.exe: fatal error: …/R/R-4.1.1/library/StanHeaders/include/stan/math/prim/mat/fun/Eigen.hpp: No such file or directorycompilation terminated.make: *** […/R/R-4.1.1/etc/x64/Makeconf:245: file4ff05ac045af.o] Error 1
Thanks in advance