I have been trying to get rstan installed and running. I have followed the instructions here (RStan Getting Started · stan-dev/rstan Wiki · GitHub) as closely as possible.
After following all of the steps, I get to this code point:
example(stan_model, package = “rstan”, run.dontrun = TRUE)
RStudio then says that I need to download additional tools – it wants to install Rtools42 every time. I have downloaded it several times already. I have downloaded several different versions of Rtools, but it seems like it can’t find the download.
Ultimately, the example() code produces errors:
Error in compileCode(f, code, language = language, verbose = verbose) :
Error in system(paste(MAKE, p1(paste("-f", shQuote(makefiles))), "compilers"), : 'make' not foundCalls: <Anonymous> -> .shlib_internal -> systemExecution halted
I am not an expert at all. Just trying to get it to work.
I am using Windows.
I downloaded “rstan” from here:
install.packages(“rstan”, repos = “https://cloud.r-project.org/”, dependencies = TRUE)
-
Output of
writeLines(readLines(file.path(Sys.getenv("HOME"), ".R/Makevars")))
:
Error in file(con, “r”) : cannot open the connection
In addition: Warning message:
In file(con, “r”) :
cannot open file ‘C:\Users\Administrator\Documents/.R/Makevars’: No such file or directory -
Output of
devtools::session_info("rstan")
:
devtools::session_info(“rstan”)
Error in loadNamespace(x) : there is no package called ‘devtools’
Appreciate any help anyone can provide!