diff options
author | Johannes Ranke <jranke@uni-bremen.de> | 2021-02-06 18:30:32 +0100 |
---|---|---|
committer | Johannes Ranke <jranke@uni-bremen.de> | 2021-02-06 18:30:32 +0100 |
commit | 48c463680b51fa767b4cd7bd62865f192d0354ac (patch) | |
tree | 5b66eb08a7fd5e29fb7e6d3a9a8258ccdcaea73e /tests/testthat/test_plot.R | |
parent | 2ee20b257e34210e2d1f044431f3bfe059c9c5e7 (diff) |
Reintroduce interface to saemix
Also after the upgrade from buster to bullseye of my local system, some
test results for saemix have changed.
Diffstat (limited to 'tests/testthat/test_plot.R')
-rw-r--r-- | tests/testthat/test_plot.R | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/testthat/test_plot.R b/tests/testthat/test_plot.R index 0bf3ee66..1c95d069 100644 --- a/tests/testthat/test_plot.R +++ b/tests/testthat/test_plot.R @@ -35,6 +35,11 @@ test_that("Plotting mkinfit, mmkin and mixed model objects is reproducible", { plot_biphasic_mmkin <- function() plot(f_uba_dfop_sfo_mixed) vdiffr::expect_doppelganger("mixed model fit for mmkin object", plot_biphasic_mmkin) + if (saemix_available) { + plot_biphasic_saem_s <- function() plot(f_uba_dfop_sfo_saem) + vdiffr::expect_doppelganger("mixed model fit for saem object with saemix transformations", plot_biphasic_saem_s) + } + skip_on_travis() plot_biphasic_nlme <- function() plot(dfop_nlme_1) @@ -43,6 +48,12 @@ test_that("Plotting mkinfit, mmkin and mixed model objects is reproducible", { #plot_biphasic_mmkin <- function() plot(mixed(mmkin_biphasic)) # Biphasic fits with lots of data and fits have lots of potential for differences plot_biphasic_nlme <- function() plot(nlme_biphasic) + if (saemix_available) { + #plot_biphasic_saem_s <- function() plot(saem_biphasic_s) + plot_biphasic_saem_m <- function() plot(saem_biphasic_m) + + vdiffr::expect_doppelganger("mixed model fit for saem object with mkin transformations", plot_biphasic_saem_m) + } # different results when working with eigenvalues plot_errmod_fit_D_obs_eigen <- function() plot_err(fit_D_obs_eigen, sep_obs = FALSE) |