aboutsummaryrefslogtreecommitdiff
path: root/tests/testthat/test_nafta.R
diff options
context:
space:
mode:
authorJohannes Ranke <jranke@uni-bremen.de>2020-05-29 15:03:04 +0200
committerJohannes Ranke <jranke@uni-bremen.de>2020-05-29 15:03:04 +0200
commit510436646b1bdd5b8cfab70be29334bd3cc9c828 (patch)
tree4b3e26f658e822e18d09e2d939a5c89214566b6d /tests/testthat/test_nafta.R
parent609bfe2fd7ecbdcad5f5d641f0db51541dcd6a4e (diff)
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.
Diffstat (limited to 'tests/testthat/test_nafta.R')
-rw-r--r--tests/testthat/test_nafta.R5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/testthat/test_nafta.R b/tests/testthat/test_nafta.R
index 2cc25f82..595db999 100644
--- a/tests/testthat/test_nafta.R
+++ b/tests/testthat/test_nafta.R
@@ -28,8 +28,11 @@ test_that("Test data from Appendix B are correctly evaluated", {
})
test_that("Test data from Appendix D are correctly evaluated", {
+ # We are not interested in the warnings about non-normal residuals here
+ suppressWarnings(
res <- nafta(NAFTA_SOP_Appendix_D, "MRID 555555",
- cores = 1, quiet = TRUE)
+ cores = 1, quiet = TRUE)
+ )
# From Figure D.1
dtx_sop <- matrix(c(407, 541, 429, 1352, 5192066, 2383), nrow = 3, ncol = 2)

Contact - Imprint