We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fe07ccd commit e540183Copy full SHA for e540183
1 file changed
R/install.R
@@ -104,7 +104,9 @@ install_cmdstan <- function(dir = NULL,
104
.cmdstanr$WSL <- FALSE
105
}
106
if (os_is_windows() && !os_is_wsl() && isTRUE(version < "2.35.0")) {
107
- if (Sys.getenv("CMDSTANR_USE_MSYS_TOOLCHAIN") == "") {
+ # RTools44 can be used unmodified with CmdStan 2.35+
108
+ # For new installs of older versions, users need to install mingw32-make and MSYS gcc
109
+ if (Sys.getenv("CMDSTANR_USE_MSYS_TOOLCHAIN") == "" && rtools4x_version() == "44") {
110
stop("CmdStan versions prior to 2.35.0 require additional toolchain configuration on Windows.\n",
111
"Please set the environment variable CMDSTANR_USE_MSYS_TOOLCHAIN to 'true' and \n",
112
"call `check_cmdstan_toolchain(fix = TRUE)` before installing CmdStan.", call. = FALSE)
0 commit comments