Skip to content

Commit c49d4a6

Browse files
committed
update tests
1 parent bd02b57 commit c49d4a6

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

R/install.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -509,7 +509,7 @@ check_rtools4x_windows_toolchain <- function(fix = FALSE, quiet = FALSE) {
509509
stop(
510510
"\n", rtools_version, " was not found but is required to run CmdStan with R version ",
511511
R.version$major, ".", R.version$minor, ".",
512-
"\nPlease install ", rtools_version, " and run check_cmdstan_toolchain().",
512+
"\nPlease install ", rtools_version, " and run cmdstanr::check_cmdstan_toolchain().",
513513
call. = FALSE
514514
)
515515
}
@@ -518,7 +518,7 @@ check_rtools4x_windows_toolchain <- function(fix = FALSE, quiet = FALSE) {
518518
if (grepl("\\(|)| ", rtools_path)) {
519519
stop(
520520
"\n", rtools_version, " is installed in a path with spaces or brackets, which is not supported.",
521-
"\nPlease reinstall ", rtools_version, " to a valid path, restart R, and then run check_cmdstan_toolchain().",
521+
"\nPlease reinstall ", rtools_version, " to a valid path, restart R, and then run cmdstanr::check_cmdstan_toolchain().",
522522
call. = FALSE
523523
)
524524
}

tests/testthat/test-install.R

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -127,11 +127,11 @@ test_that("toolchain checks on Unix work", {
127127
path_backup <- Sys.getenv("PATH")
128128
Sys.setenv("PATH" = "")
129129
if (os_is_macos()) {
130-
err_msg_cpp <- "A suitable C++ compiler was not found. Please install the command line tools for Mac with 'xcode-select --install' or install Xcode from the app store. Then restart R and run check_cmdstan_toolchain()."
131-
err_msg_make <- "The 'make' tool was not found. Please install the command line tools for Mac with 'xcode-select --install' or install Xcode from the app store. Then restart R and run check_cmdstan_toolchain()."
130+
err_msg_cpp <- "A suitable C++ compiler was not found. Please install the command line tools for Mac with 'xcode-select --install' or install Xcode from the app store. Then restart R and run cmdstanr::check_cmdstan_toolchain().."
131+
err_msg_make <- "The 'make' tool was not found. Please install the command line tools for Mac with 'xcode-select --install' or install Xcode from the app store. Then restart R and run cmdstanr::check_cmdstan_toolchain().."
132132
} else {
133-
err_msg_cpp <- "A C++ compiler was not found. Please install the 'clang++' or 'g++' compiler, restart R, and run check_cmdstan_toolchain()."
134-
err_msg_make <- "The 'make' tool was not found. Please install 'make', restart R, and then run check_cmdstan_toolchain()."
133+
err_msg_cpp <- "A C++ compiler was not found. Please install the 'clang++' or 'g++' compiler, restart R, and run cmdstanr::check_cmdstan_toolchain()."
134+
err_msg_make <- "The 'make' tool was not found. Please install 'make', restart R, and then run cmdstanr::check_cmdstan_toolchain()."
135135
}
136136
expect_error(
137137
check_unix_cpp_compiler(),

0 commit comments

Comments
 (0)