Open brianperdomo opened 1 week ago
So is the difference in the paths just the slashes? I'm not a Windows user, so maybe @rok-cesnovar or @andrjohns will have an idea about why that's happening.
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 assume .cmdstsan
is a typo or do you really have an extra "s" in the path? That would definitely cause a problem, but guessing that's just a typo.
Oh actually I see there’s two instances of cmdstan-2.35.0
in the path that you say is the correct one. That’s strange. Do you know why that’s the case?
Sorry, the .cmdstsan was a typo. The issue is the duplication of the cmdstan-2.35.0 directory in the path.
I have not been able to figure out the issue. I'll try to take a look this weekend to see if I can find other clues. Are there any settings or other diagnostics I should check that could be informative?
I don’t think I’ve seen this particular issue with the path before. A couple things to try if you’re not able to figure out why that’s happening:
Delete the entire .cmdstan folder. Then rerun install_cmdstan(). Maybe you tried this already, if not worth a try.
download CmdStan yourself and unpack it yourself. Then point cmdstanr to the location using set_cmdstan_path()
and then run rebuild_cmdstan()
.
Deleting .cmdstan and repeating the install function did not work, but I was able to unpack and rebuild cmdstan like you suggested. Thanks!
I'm still not sure what the source of the problem is, but glad you got it running successfully using that workaround!
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)
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