From 510436646b1bdd5b8cfab70be29334bd3cc9c828 Mon Sep 17 00:00:00 2001 From: Johannes Ranke Date: Fri, 29 May 2020 15:03:04 +0200 Subject: Warn if standardized residuals are unlikely normal This revealed a bug in the data returned in mkinfit$data in the case of the d_3 algorithm, which also affected the residual plot - the data from the direct fitting was not returned even if this was the better method. --- tests/testthat/test_analytical.R | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'tests/testthat/test_analytical.R') diff --git a/tests/testthat/test_analytical.R b/tests/testthat/test_analytical.R index a34fa2cd..66fb1ace 100644 --- a/tests/testthat/test_analytical.R +++ b/tests/testthat/test_analytical.R @@ -1,5 +1,8 @@ context("Analytical solutions for coupled models") +# We do not want the warnings due to non-normality of residuals here +warn_option <- options(warn=-1) + test_that("The analytical solutions for SFO-SFO are correct", { # No sink, no formation fractions SFO_SFO_nosink <- mkinmod( @@ -58,3 +61,5 @@ test_that("The analytical solution for DFOP-SFO are correct", { tolerance = 5e-6 ) }) + +options(warn = warn_option$warn) -- cgit v1.2.1