Cmdstanr installation problem

this the output for the second command:

list.files(file.path(Sys.getenv(“RTOOLS40_HOME”), “mingw64”, “bin”))
[1] “addr2line.exe” “ar.exe” “as.exe”
[4] “autopoint” “bunzip2.exe” “bzcat.exe”
[7] “bzcmp” “bzdiff” “bzegrep”
[10] “bzfgrep” “bzgrep” “bzip2.exe”
[13] “bzip2recover.exe” “bzless” “bzmore”
[16] “c++.exe” “c++filt.exe” “cc.exe”
[19] “cpp.exe” “dlltool.exe” “dllwrap.exe”
[22] “dwp.exe” “elfedit.exe” “envsubst.exe”
[25] “g++.exe” “gcc-ar.exe” “gcc-nm.exe”
[28] “gcc-ranlib.exe” “gcc.exe” “gcov-tool.exe”
[31] “gcov.exe” “gendef.exe” “genidl.exe”
[34] “genlib.exe” “genpeimg.exe” “gettext.exe”
[37] “gettext.sh” “gettextize” “gfortran.exe”
[40] “gprof.exe” “ld.bfd.exe” “ld.exe”
[43] “ld.gold.exe” “mingw32-make.exe” “msgattrib.exe”
[46] “msgcat.exe” “msgcmp.exe” “msgcomm.exe”
[49] “msgconv.exe” “msgen.exe” “msgexec.exe”
[52] “msgfilter.exe” “msgfmt.exe” “msggrep.exe”
[55] “msginit.exe” “msgmerge.exe” “msgunfmt.exe”
[58] “msguniq.exe” “ngettext.exe” “nm.exe”
[61] “objcopy.exe” “objdump.exe” “pkg-config.exe”
[64] “ranlib.exe” “readelf.exe” “recode-sr-latin.exe”
[67] “size.exe” “strings.exe” “strip.exe”
[70] “widl.exe” “windmc.exe” “windres.exe”
[73] “x86_64-w64-mingw32-c++.exe” “x86_64-w64-mingw32-g++.exe” “x86_64-w64-mingw32-gcc-8.3.0.exe”
[76] “x86_64-w64-mingw32-gcc-ar.exe” “x86_64-w64-mingw32-gcc-nm.exe” “x86_64-w64-mingw32-gcc-ranlib.exe”
[79] “x86_64-w64-mingw32-gcc.exe” “x86_64-w64-mingw32-gfortran.exe” “x86_64-w64-mingw32-pkg-config.exe”
[82] “xgettext.exe”

Hmm, everything looks to be where it should be, so I’m not sure where the error would be coming from. Can you try the cmdstan install without the toolchain check:

cmdstanr::install_cmdstan(check_toolchain=FALSE)

Dear Andrew
it seems that now successfully ended up. i just took the picture from the last part of the output

can i now run the cmdstanr? or i must do other action commands?

No, that’s all been configured successfully and you should be fine to use cmdstanr as normal now

1 Like

Dear Andrew,
Your are a legend. Thank you veryyy much. I run a smaple for test and it did work well

1 Like

Thanks @andrjohns for solving this one. I didnt fully follow what is going on, what seems to have solved it?

I think there was a false positive in check_cmdstan_toolchain() which was saying that the toolchain wasn’t correctly installed, even though it was. I’m not sure where the false positive was coming from, but forcing the install to skip checking worked just fine

1 Like