Hi folks,
I'm pretty novice with R/Rstudio and lately trying to get my feet wet with it. So I've copied some elses project and playing around with the code to familiarize myself with R/Rstudio and I've been getting the following error when executing part of the code
Error in compileCode(f, code, language = language, verbose = verbose) :
Compilation ERROR, function(s)/method(s) not created! In file included from /home/rstudio-user/R/x86_64-pc-linux-gnu-library/3.6/BH/include/boost/smart_ptr/shared_ptr.hpp:28:0,
from /home/rstudio-user/R/x86_64-pc-linux-gnu-library/3.6/BH/include/boost/shared_ptr.hpp:17,
from /home/rstudio-user/R/x86_64-pc-linux-gnu-library/3.6/StanHeaders/include/stan/math/prim/mat/fun/LDLT_factor.hpp:7,
from /home/rstudio-user/R/x86_64-pc-linux-gnu-library/3.6/StanHeaders/include/stan/math/prim/mat/err/check_ldlt_factor.hpp:6,
from /home/rstudio-user/R/x86_64-pc-linux-gnu-library/3.6/StanHeaders/include/stan/math/prim/mat.hpp:34,
from /home/rstudio-user/R/x86_64-pc-linux-gnu-library/3.6/StanHeaders/include/stan/math/rev/mat.hpp:12,
from /home/rstudio-user/R/x86_64-pc-linux-gnu-library/3.6/StanHeaders/include/stan/math.hpp:4,
from /home/rstudio-user/R/x86_64-pc-linux-gnu-libr
In addition: Warning message:
In system(cmd, intern = !verbose) :
running command '/opt/R/3.6.0/lib/R/bin/R CMD SHLIB filef725fa81cc.cpp 2> filef725fa81cc.cpp.err.txt' had status 1
Error in sink(type = "output") : invalid connection
Any ideas what going wrong here? The code examples are using stan if that helps.
Thanks!