Skip to content

Commit e540183

Browse files
authored
Update install.R
1 parent fe07ccd commit e540183

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

R/install.R

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,9 @@ install_cmdstan <- function(dir = NULL,
104104
.cmdstanr$WSL <- FALSE
105105
}
106106
if (os_is_windows() && !os_is_wsl() && isTRUE(version < "2.35.0")) {
107-
if (Sys.getenv("CMDSTANR_USE_MSYS_TOOLCHAIN") == "") {
107+
# 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") {
108110
stop("CmdStan versions prior to 2.35.0 require additional toolchain configuration on Windows.\n",
109111
"Please set the environment variable CMDSTANR_USE_MSYS_TOOLCHAIN to 'true' and \n",
110112
"call `check_cmdstan_toolchain(fix = TRUE)` before installing CmdStan.", call. = FALSE)

0 commit comments

Comments
 (0)