Issue with cmdstanr installation


I installed cmdstanr for the first time and it seems that due to one of the default_paths, the toolchains installation got put into a path that has space in it. I’m struggling with finding out how to get cmdstanr to reinstall the toolchains? I tried using the

  dir = , ..

rebuild_cmdstan (

rebuild functions…

Error msg I’m trying to fix:

> cmdstanr_example()
Compiling Stan program...
Error in `(function (command = NULL, args = character(), error_on_status = TRUE, …`:
! System command 'make' failed
Exit status: 2
make: *** /c/Users/username/OneDrive: Is a directory.  Stop.
Type .Last.error to see the more details.```

I think I figured it out:

I just had to run

new_home_dir <- "C:/your/desired/temporary/home"
Sys.setenv(HOME = new_home_dir)
1 Like