I’m trying to install cmdstan (Windows 10, RStudio 2021.09.1, R 4.1.2)
I installed cmdstanr from github
devtools::install_github("stan-dev/cmdstanr")
The toolchain is correctly setup to install cmdstan
> cmdstanr::check_cmdstan_toolchain(fix=TRUE)
The C++ toolchain required for CmdStan is setup properly!
I tried specifying the directory as suggested here but I get the following error:
> install_cmdstan(cores=2, dir="C:/Users/yim583")
The C++ toolchain required for CmdStan is setup properly!
* Latest CmdStan release is v2.28.2
* Installing CmdStan v2.28.2 in C:/Users/yim583/cmdstan-2.28.2
* Downloading cmdstan-2.28.2.tar.gz from GitHub...
* Download complete
* Unpacking archive...
stan/lib/stan_math/lib/benchmark_1.5.1/docs/tools.md: truncated gzip input
tar.exe: Error exit delayed from previous errors.
Error: Problem extracting tarball. Exited with return code: 1
In addition: Warning message:
In utils::untar(dest_file, exdir = dir_cmdstan, extras = "--strip-components 1") :
‘tar.exe -xf "C:/Users/yim583/cmdstan-2.28.2.tar.gz" -C "C:/Users/yim583/cmdstan-2.28.2" --strip-components 1’ returned error code 1
I also have a working tar
> system("tar.exe")
tar.exe: Must specify one of -c, -r, -t, -u, -x
[1] 1