aboutsummaryrefslogtreecommitdiff
path: root/tests/testthat/test_plot.R
diff options
context:
space:
mode:
authorJohannes Ranke <jranke@uni-bremen.de>2022-03-14 15:41:56 +0100
committerJohannes Ranke <jranke@uni-bremen.de>2022-03-14 15:41:56 +0100
commit3cddc58e6fcdd5341b354dc5b5f784ec8190f62b (patch)
tree8303617316a207e3e4ed7c1b554abf0ed77e3d39 /tests/testthat/test_plot.R
parent72ef221369df14a527c2751c002b5cf3db29520d (diff)
Reduce check time for CRAN, releasev1.1.0
Diffstat (limited to 'tests/testthat/test_plot.R')
-rw-r--r--tests/testthat/test_plot.R14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/testthat/test_plot.R b/tests/testthat/test_plot.R
index 4f484cf3..58a00662 100644
--- a/tests/testthat/test_plot.R
+++ b/tests/testthat/test_plot.R
@@ -30,6 +30,20 @@ test_that("Plotting mkinfit, mmkin and mixed model objects is reproducible", {
plot_err_sfo_sfo <- function() plot_err(f_sfo_sfo_desolve)
vdiffr::expect_doppelganger("plot_err for FOCUS D", plot_err_sfo_sfo)
+ # UBA datasets
+ ds_uba <- lapply(experimental_data_for_UBA_2019[6:10],
+ function(x) subset(x$data[c("name", "time", "value")]))
+ names(ds_uba) <- paste("Dataset", 6:10)
+ sfo_sfo_uba <- mkinmod(parent = mkinsub("SFO", "A1"),
+ A1 = mkinsub("SFO"), quiet = TRUE)
+ dfop_sfo_uba <- mkinmod(parent = mkinsub("DFOP", "A1"),
+ A1 = mkinsub("SFO"), quiet = TRUE)
+ f_uba_mmkin <- mmkin(list("DFOP-SFO" = dfop_sfo_uba),
+ ds_uba, quiet = TRUE, cores = n_cores)
+ f_uba_dfop_sfo_mixed <- mixed(f_uba_mmkin["DFOP-SFO", ])
+
+ f_uba_dfop_sfo_saem <- saem(f_uba_mmkin["DFOP-SFO", ], quiet = TRUE, transformations = "saemix")
+
plot_biphasic_mmkin <- function() plot(f_uba_dfop_sfo_mixed)
vdiffr::expect_doppelganger("mixed model fit for mmkin object", plot_biphasic_mmkin)

Contact - Imprint