Describe the bug
Inside the default .cmdstan directory if the user has a subdirectory foo (really any directory name alphabetically after "cmdstan") then CmdStanR will try to set the path too foo instead of the latest cmdstan release. This is because this line sorts all names, not only ones starting with "cmdstan":
|
latest_cmdstan <- sort(cmdstan_installs, decreasing = TRUE)[1] |
This won't affect anyone who doesn't manually mess with the .cmdstan directory but @mitzimorris and I discovered this issue today because she had some custom directories in .cmdstan for development purposes.
To Reproduce
Add a directory foo to .cmdstan and then reload the package.
I'll make a PR to fix this.
Describe the bug
Inside the default
.cmdstandirectory if the user has a subdirectoryfoo(really any directory name alphabetically after "cmdstan") then CmdStanR will try to set the path toofooinstead of the latest cmdstan release. This is because this line sorts all names, not only ones starting with "cmdstan":cmdstanr/R/path.R
Line 148 in e9c12be
This won't affect anyone who doesn't manually mess with the
.cmdstandirectory but @mitzimorris and I discovered this issue today because she had some custom directories in.cmdstanfor development purposes.To Reproduce
Add a directory
footo.cmdstanand then reload the package.I'll make a PR to fix this.