|
22 | 22 | #' C++ toolchain. It is called internally by `install_cmdstan()` but can also
|
23 | 23 | #' be called directly by the user. On Windows only, calling the function with
|
24 | 24 | #' the `fix = TRUE` argument will attempt to install the necessary toolchain
|
25 |
| -#' components if they are not found. For Windows users with RTools44 no additional |
26 |
| -#' toolchain configuration is required. For users with older versions of RTools, |
27 |
| -#' the function will install `mingw32-make` and `g++` from MSYS using the |
28 |
| -#' RTools-provided `pacman` package manager. This can also be manually requested |
29 |
| -#' by setting the environment variable `CMDSTANR_USE_MSYS_TOOLCHAIN` to 'true' |
| 25 | +#' components if they are not found. For Windows users with RTools and CmdStan |
| 26 | +#' versions >= 2.35 no additional toolchain configuration is required. |
30 | 27 | #'
|
31 |
| -#' NOTE: When installing CmdStan on Windows with RTools44 and CmdStan versions |
| 28 | +#' NOTE: When installing CmdStan on Windows with RTools and CmdStan versions |
32 | 29 | #' prior to 2.35.0, the above additional toolchain configuration
|
33 | 30 | #' is still required. To enable this configuration, set the environment variable
|
34 | 31 | #' `CMDSTANR_USE_MSYS_TOOLCHAIN` to 'true' and call
|
@@ -115,9 +112,9 @@ install_cmdstan <- function(dir = NULL,
|
115 | 112 | .cmdstanr$WSL <- FALSE
|
116 | 113 | }
|
117 | 114 | if (os_is_windows() && !os_is_wsl() && isTRUE(version < "2.35.0")) {
|
118 |
| - # RTools44 can be used unmodified with CmdStan 2.35+ |
| 115 | + # RTools can be used unmodified with CmdStan 2.35+ |
119 | 116 | # For new installs of older versions, users need to install mingw32-make and MSYS gcc
|
120 |
| - if (Sys.getenv("CMDSTANR_USE_MSYS_TOOLCHAIN") == "" && rtools4x_version() == "44") { |
| 117 | + if (Sys.getenv("CMDSTANR_USE_MSYS_TOOLCHAIN") == "") { |
121 | 118 | stop("CmdStan versions prior to 2.35.0 require additional toolchain configuration on Windows.\n",
|
122 | 119 | "Please set the environment variable CMDSTANR_USE_MSYS_TOOLCHAIN to 'true' and \n",
|
123 | 120 | "call `check_cmdstan_toolchain(fix = TRUE)` before installing CmdStan.", call. = FALSE)
|
@@ -663,8 +660,8 @@ check_rtools4x_windows_toolchain <- function(fix = FALSE, quiet = FALSE) {
|
663 | 660 | call. = FALSE
|
664 | 661 | )
|
665 | 662 | }
|
666 |
| - # No additional utilities/toolchains are needed with RTools44 |
667 |
| - if (rtools4x_version() >= "44" && Sys.getenv("CMDSTANR_USE_MSYS_TOOLCHAIN") == "") { |
| 663 | + # No additional utilities/toolchains are needed with RTools4 |
| 664 | + if (Sys.getenv("CMDSTANR_USE_MSYS_TOOLCHAIN") == "") { |
668 | 665 | return(invisible(NULL))
|
669 | 666 | }
|
670 | 667 | if (!is_toolchain_installed(app = "g++", path = toolchain_path) ||
|
@@ -879,7 +876,7 @@ rtools4x_toolchain_path <- function() {
|
879 | 876 | if (arch_is_aarch64()) {
|
880 | 877 | toolchain <- "aarch64-w64-mingw32.static.posix"
|
881 | 878 | } else {
|
882 |
| - if (rtools4x_version() < "44" || Sys.getenv("CMDSTANR_USE_MSYS_TOOLCHAIN") != "" || |
| 879 | + if (Sys.getenv("CMDSTANR_USE_MSYS_TOOLCHAIN") != "" || |
883 | 880 | isTRUE(cmdstan_version(error_on_NA=FALSE) < "2.35.0")) {
|
884 | 881 | toolchain <- ifelse(is_ucrt_toolchain(), "ucrt64", "mingw64")
|
885 | 882 | } else {
|
|
0 commit comments