I downloaded and installed Rtools35, then copied the steps in Configuration, Installing RStan from source.
I get this type of error messages:
Warning in file(con, “w”) :
cannot open file ‘…smitchell/R/win-library/3.5/StanHeaders/doc/index.html’: No such file or directory
Error in file(con, “w”) : cannot open the connection
ERROR: installing vignettes failed
removing ‘…smitchell/R/win-library/3.5/StanHeaders’
In R CMD INSTALL
Warning in install.packages :
installation of package ‘StanHeaders’ had non-zero exit status
…
ERROR: dependencies ‘StanHeaders’, ‘gridExtra’, ‘loo’ are not available for package ‘rstan’
Operating System = Windows 7 Professional, 64-bit Operating System
Session info -------------------------------------------------------------------------------------------------------------------------------------------------------
setting value
version R version 3.5.2 (2018-12-20)
os Windows 7 x64 SP 1
system x86_64, mingw32
ui RStudio
language (EN)
collate English_United States.1252
ctype English_United States.1252
tz America/New_York
date 2019-04-04
Packages -----------------------------------------------------------------------------------------------------------------------------------------------------------
! package * version date lib source
R rstan [?]
Fortunately, no that is not the only solution. It is usually not necessary to install StanHeaders from source, in which case you could just use the binary. I don’t know why it is looking for doc/index.html because StanHeaders has no doc. If you are going to build it from source you could pass "--no-build-vignettes" to INSTALL_opts to bypass that part.
No, rstan will ultimately install fine on Windows. If you needed it working quickly I think attempting to install it on a different setup makes sense. One could have a Ubuntu VM with rstan up in <1hr. Maybe it’s not the best advice but it would provide a usable alternative until help arrives.
OK, that is just an option for building the package rather than installing it. But I don’t even know what setting there is no tell it to try to build the vignettes when installing. When I do it on Windows, I just get a lot of compilation messages and then
installing via 'install.libs.R' to C:/Users/Stan/Documents/R/win-library/3.5/StanHeaders
** inst
** help
No man pages found in package 'StanHeaders'
*** installing help indices
** building package indices
** installing vignettes
** testing if installed package can be loaded
*** arch - i386
*** arch - x64
* DONE (StanHeaders)
In R CMD INSTALL
so it seems to be just copying the vignettes from the .tar.gz file rather than re-executing the code in them.