From 99947961be1cf0a7eed80426bc3d8cc6daa6d106 Mon Sep 17 00:00:00 2001 From: Johannes Ranke Date: Thu, 31 Oct 2019 11:47:23 +0100 Subject: Reorganize tests to reduce time on winbuilder --- tests/testthat/test_confidence.R | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tests/testthat/test_confidence.R') diff --git a/tests/testthat/test_confidence.R b/tests/testthat/test_confidence.R index 2443fa66..a2bf1401 100644 --- a/tests/testthat/test_confidence.R +++ b/tests/testthat/test_confidence.R @@ -73,7 +73,8 @@ test_that("Likelihood profile based confidence intervals work", { } f_mle <- stats4::mle(f_nll, start = as.list(parms(f)), nobs = nrow(FOCUS_2006_C)) - ci_mkin_1_p_0.95 <- confint(f, method = "profile", level = 0.95, quiet = TRUE) + ci_mkin_1_p_0.95 <- confint(f, method = "profile", level = 0.95, + cores = n_cores, quiet = TRUE) # Magically, we get very similar boundaries as stats4::mle # (we need to capture the output to avoid printing this while testing as -- cgit v1.2.1