Hi @Ruben222
It's not clear from the thread why you must install the source version of rstan. There is only a minor version change, so why not just install the "win-binary" version?
In the longer term, I would uninstall both rtools42 and rtool43, and then reinstall 43.
Unfortuntately, it sounds like I do need to install the source version. It describes the situation on the installation instructions (here RStan Getting Started · stan-dev/rstan Wiki · GitHub), but if I install using just the win-binary version and try the test model, I get this error:
Error in compileCode(f, code, language = language, verbose = verbose) :
It suggests the fix for this is installing rstan from source.
Sorry to bump this thread, but I am still completely stuck on this. I am certain there is something going wrong with my rtools, but it doesn't fix the problem by uninstalling and reinstalling.
Sys.which("make") gives this output - which I think is correct?:
make
"C:\rtools43\usr\bin\make.exe"
But attempting to install from source always gives this error:
Warning in install.packages : installation of package ‘jsonlite’ had non-zero exit status
The other suspicious part is running: pkgbuild::check_rtools() gives:
WARNING: Rtools is required to build R packages, but is not currently installed.