Skip to content

Error with install_cmdstan() under Windows 10, R 4.4.0, RTools 4.4 #962

Open
@jonathan-g

Description

@jonathan-g

Describe the bug
I get a fatal error when running install_cmdstan() under Windows 10, R 4.4.0, RTools 4.4

To Reproduce
Run install_cmdstan()

Expected behavior
Successful installation of cmdstan.

Operating system
Windows 10

CmdStanR version number
0.7.1, freshly installed from GitHub, SHA = 21888fa

Additional context

> install_cmdstan(cores=8)
The C++ toolchain required for CmdStan is setup properly!
trying URL 'https://api.github.com/repos/stan-dev/cmdstan/releases/latest'
Content type 'application/json; charset=utf-8' length 14898 bytes (14 KB)
downloaded 14 KB

* Latest CmdStan release is v2.34.1
* Installing CmdStan v2.34.1 in C:\Users\gilligjm\Documents/.cmdstan/cmdstan-2.34.1
* Downloading cmdstan-2.34.1.tar.gz from GitHub...
trying URL 'https://github.com/stan-dev/cmdstan/releases/download/v2.34.1/cmdstan-2.34.1.tar.gz'
Content type 'application/octet-stream' length 51577679 bytes (49.2 MB)
downloaded 49.2 MB

* Download complete
* Unpacking archive...
* Building CmdStan binaries...
INFO: Could not find files for the given pattern(s).
cp bin/windows-stanc bin/stanc.exe
      0 [main] mkdir (19248) C:\rtools44\usr\bin\mkdir.exe: *** fatal error - add_item ("\??\C:\rtools44", "/", ...) failed, errno 1

Followed by a stack trace.

Session Info

R version 4.4.0 (2024-04-24 ucrt) 
Platform: x86_64-w64-mingw32/x64 
Running under: Windows 10 x64 (build 19045)  

Matrix products: default   

locale: [1] LC_COLLATE=English_United States.utf8  LC_CTYPE=English_United States.utf8    LC_MONETARY=English_United States.utf8 [4] LC_NUMERIC=C                           LC_TIME=English_United States.utf8      

time zone: America/Chicago 
tzcode source: internal  

attached base packages: 
[1] stats     graphics  grDevices utils     datasets  methods   base       

other attached packages: 
[1] cmdstanr_0.7.1  

loaded via a namespace (and not attached):  
[1] vctrs_0.6.5          knitr_1.46           cli_3.6.2            xfun_0.43            rlang_1.1.3          processx_3.8.4        
[7] generics_0.1.3       tensorA_0.36.2.1     jsonlite_1.8.8       gitcreds_0.1.2       glue_1.7.0           backports_1.4.1      
[13] pkgbuild_1.4.4       distributional_0.4.0 ps_1.7.6             fansi_1.0.6          tibble_3.2.1         abind_1.4-5          
[19] lifecycle_1.0.4      compiler_4.4.0       posterior_1.5.0      pkgconfig_2.0.3      rstudioapi_0.16.0    R6_2.5.1             
[25] utf8_1.2.4           pillar_1.9.0         curl_5.2.1           callr_3.7.6          magrittr_2.0.3       checkmate_2.3.1      
[31] withr_3.0.0          tools_4.4.0          remotes_2.5.0        desc_1.4.3
--

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions