aboutsummaryrefslogtreecommitdiff
path: root/tests/testthat/test_mixed.R
diff options
context:
space:
mode:
authorJohannes Ranke <jranke@uni-bremen.de>2022-11-18 22:11:02 +0100
committerJohannes Ranke <jranke@uni-bremen.de>2022-11-18 22:11:02 +0100
commit5ec8e1bad1aa7d79ee9c19bdd50be07f81a14278 (patch)
tree26aaa01d53bac4e2b04de6d04385e34d3a246606 /tests/testthat/test_mixed.R
parentb6b7e387261e5483f1bdfafaaa975e2f24c6567c (diff)
Move two saem fits from setup script to skipped tests
Save winbuilder/CRAN check time...
Diffstat (limited to 'tests/testthat/test_mixed.R')
-rw-r--r--tests/testthat/test_mixed.R8
1 files changed, 3 insertions, 5 deletions
diff --git a/tests/testthat/test_mixed.R b/tests/testthat/test_mixed.R
index ab8dfc27..8c257738 100644
--- a/tests/testthat/test_mixed.R
+++ b/tests/testthat/test_mixed.R
@@ -46,6 +46,9 @@ test_that("nlme results are reproducible to some degree", {
test_that("saemix results are reproducible for biphasic fits", {
+ skip_on_cran()
+ saem_dfop_sfo_s <- saem(mmkin_dfop_sfo, transformations = "saemix", quiet = TRUE)
+
test_summary <- summary(saem_dfop_sfo_s)
test_summary$saemixversion <- "Dummy 0.0 for testing"
test_summary$mkinversion <- "Dummy 0.0 for testing"
@@ -65,11 +68,6 @@ test_that("saemix results are reproducible for biphasic fits", {
expect_true(all(ci_dfop_sfo_s_s[, "lower"] < dfop_sfo_pop))
expect_true(all(ci_dfop_sfo_s_s[, "upper"] > dfop_sfo_pop))
- # k2 is not fitted well
- ci_dfop_sfo_s_m <- summary(saem_dfop_sfo_m)$confint_back
- expect_true(all(ci_dfop_sfo_s_m[no_k2, "lower"] < dfop_sfo_pop[no_k2]))
- expect_true(all(ci_dfop_sfo_s_m[no_k1, "upper"] > dfop_sfo_pop[no_k1]))
-
# I tried to only do few iterations in routine tests as this is so slow
# but then deSolve fails at some point (presumably at the switch between
# the two types of iterations)

Contact - Imprint