@@ -13,7 +13,7 @@ test_that("install_cmdstan() successfully installs cmdstan", {
1313 }
1414 expect_message(
1515 expect_output(
16- install_cmdstan(dir = dir , cores = 2 , quiet = FALSE , overwrite = TRUE ,
16+ install_cmdstan(dir = dir , cores = 1 , quiet = FALSE , overwrite = TRUE ,
1717 release_url = cmdstan_test_tarball_url ,
1818 wsl = os_is_wsl()),
1919 " Compiling C++ code" ,
@@ -52,7 +52,7 @@ test_that("install_cmdstan() errors if it times out", {
5252 expect_warning(
5353 expect_message(
5454 install_cmdstan(dir = dir , timeout = 1 , quiet = TRUE , overwrite = dir_exists ,
55- release_url = cmdstan_test_tarball_url , wsl = os_is_wsl()),
55+ cores = 1 , wsl = os_is_wsl()),
5656 if (dir_exists ) " * Removing the existing installation" else " * * Installing CmdStan from https://github.com" ,
5757 fixed = TRUE
5858 ),
@@ -64,8 +64,7 @@ test_that("install_cmdstan() errors if it times out", {
6464 expect_warning(
6565 expect_message(
6666 install_cmdstan(dir = dir , timeout = 1 , quiet = FALSE , overwrite = dir_exists ,
67- release_url = cmdstan_test_tarball_url ,
68- wsl = os_is_wsl()),
67+ cores = 1 , wsl = os_is_wsl()),
6968 if (dir_exists ) " * Removing the existing installation" else " * * Installing CmdStan from https://github.com" ,
7069 fixed = TRUE
7170 ),
@@ -102,7 +101,7 @@ test_that("install_cmdstan() works with version and release_url", {
102101
103102 expect_message(
104103 expect_output(
105- install_cmdstan(dir = dir , overwrite = TRUE , cores = 4 ,
104+ install_cmdstan(dir = dir , overwrite = TRUE , cores = 1 ,
106105 release_url = " https://github.com/stan-dev/cmdstan/releases/download/v2.36.0/cmdstan-2.36.0.tar.gz" ,
107106 wsl = os_is_wsl()),
108107 " Compiling C++ code" ,
@@ -114,7 +113,7 @@ test_that("install_cmdstan() works with version and release_url", {
114113 expect_warning(
115114 expect_message(
116115 expect_output(
117- install_cmdstan(dir = dir , overwrite = TRUE , cores = 4 ,
116+ install_cmdstan(dir = dir , overwrite = TRUE , cores = 1 ,
118117 version = " 2.36.0" ,
119118 # the URL is intentionally invalid to test that the version has higher priority
120119 release_url = " https://github.com/stan-dev/cmdstan/releases/download/v2.27.3/cmdstan-2.27.3.tar.gz" ,
@@ -218,11 +217,11 @@ test_that("Downloads respect quiet argument", {
218217 # expect_message has trouble capturing the messages from download.file
219218 # so handle manually
220219 install_normal <- suppressWarnings(
221- capture.output(install_cmdstan(dir = dir , overwrite = TRUE , quiet = FALSE ),
220+ capture.output(install_cmdstan(dir = dir , overwrite = TRUE , quiet = FALSE , cores = 1 ),
222221 type = " message" )
223222 )
224223 install_quiet <- suppressWarnings(
225- capture.output(install_cmdstan(dir = dir , overwrite = TRUE , quiet = TRUE ),
224+ capture.output(install_cmdstan(dir = dir , overwrite = TRUE , quiet = TRUE , cores = 1 ),
226225 type = " message" )
227226 )
228227
@@ -267,7 +266,7 @@ test_that("Install from release file works", {
267266
268267 expect_message(
269268 expect_output(
270- install_cmdstan(dir = dir , cores = 2 , quiet = FALSE , overwrite = TRUE ,
269+ install_cmdstan(dir = dir , cores = 1 , quiet = FALSE , overwrite = TRUE ,
271270 release_file = destfile ,
272271 wsl = os_is_wsl()),
273272 " Compiling C++ code" ,
0 commit comments