Hello! I am a new user to RStan and I ran into an issue when configuring the C++ toolchain and subsequent loading of the RStan package.
I am using Windows 10, R x64 v.4.0.2 and RStudio v.1.3.1073. I followed these instructions to the letter in R and RStudio: https://github.com/stan-dev/rstan/wiki/RStan-Getting-Started. Below are the commands I used an abbreviated version of the output highlighting the error.
> install.packages("rstan", repos = "https://cloud.r-project.org/", dependencies = TRUE)
ERROR: compilation failed for package 'jsonlite'
* removing 'C:/Users/Allison/Documents/R/win-library/4.0/jsonlite'
Warning in install.packages :
installation of package ājsonliteā had non-zero exit status
The downloaded source packages are in
āC:\Users\Allison\AppData\Local\Temp\RtmpAnUOQm\downloaded_packagesā
> pkgbuild::has_build_tools(debug = TRUE)
>library("rstan")
Loading required package: StanHeaders
Loading required package: ggplot2
Error: package or namespace load failed for ārstanā in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]):
there is no package called ājsonliteā
Any insights on would be helpful.
Thank you!
Allison