Description
Describe the bug
I'm attempting a fresh installation of cmdstanr on Windows and I get the following error:
(FYI: The overwrite is because I tried again after the first error)
cmdstanr::install_cmdstan(overwrite = TRUE)
The C++ toolchain required for CmdStan is setup properly!
trying URL 'https://api.github.com/repos/stan-dev/cmdstan/releases/latest'
downloaded 15 KB
* Latest CmdStan release is v2.35.0
* Installing CmdStan v2.35.0 in C:\Users\brian/.cmdstan/cmdstan-2.35.0
* Downloading cmdstan-2.35.0.tar.gz from GitHub...
* Removing the existing installation of CmdStan...
trying URL 'https://github.com/stan-dev/cmdstan/releases/download/v2.35.0/cmdstan-2.35.0.tar.gz'
Content type 'application/octet-stream' length 51682840 bytes (49.3 MB)
downloaded 49.3 MB
* Download complete
* Unpacking archive...
Error in file(file, ifelse(append, "a", "w")) :
cannot open the connection
In addition: Warning message:
In file(file, ifelse(append, "a", "w")) :
cannot open file 'C:\Users\brian/.cmdstan/cmdstan-2.35.0/make/local': No such file or directory
I checked that path and the problem is that the actual path should be "C:\Users\brian\.cmdstsan\cmdstan-2.35.0\cmdstan-2.35.0\make\local"
I've tried to find ways to get it to point to the right directory, but I'm at a loss.
To Reproduce
cmdstan::install_cmdstan()
Expected behavior
Either the archive needs to be unpacked in a way that matches the expected cmdstan_path() without the duplication of cmdstan-2.35.0 or cmdstan_path() should point to the path with the duplicate.... probably the former makes more sense.
Operating system
Windows 11
CmdStanR version number
tried with the version 0.8.1 from CRAN and the development version from github
Additional context
R 4.4.1, Rtools44