aboutsummaryrefslogtreecommitdiff
path: root/tests/testthat/test_plots_summary_twa.R
diff options
context:
space:
mode:
authorJohannes Ranke <jranke@uni-bremen.de>2019-10-21 21:52:33 +0200
committerJohannes Ranke <jranke@uni-bremen.de>2019-10-21 21:52:33 +0200
commit86e6d8368109d1a9c631af45227659178ce934ee (patch)
treed0fad8031db7839faf02d5e8d4130cd734e6df3f /tests/testthat/test_plots_summary_twa.R
parent0b9d87701328720558c2c7206c790ed1b17ce7bb (diff)
Fix platform dependence of the correlation matrix
Especially on winbuilder (i386 and amd64)
Diffstat (limited to 'tests/testthat/test_plots_summary_twa.R')
-rw-r--r--tests/testthat/test_plots_summary_twa.R5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/testthat/test_plots_summary_twa.R b/tests/testthat/test_plots_summary_twa.R
index 306a585c..9c802b00 100644
--- a/tests/testthat/test_plots_summary_twa.R
+++ b/tests/testthat/test_plots_summary_twa.R
@@ -56,7 +56,7 @@ test_that("Summaries are reproducible", {
# The correlation matrix is quite platform dependent
# It differs between i386 and amd64 on Windows
# and between Travis and my own Linux system
- test_summary$Corr <- signif(test_summary$Corr, 1)
+ test_summary$Corr <- NULL
expect_known_output(print(test_summary), "summary_DFOP_FOCUS_C.txt")
test_summary_2 <- summary(f_sfo_sfo_eigen)
@@ -69,7 +69,8 @@ test_that("Summaries are reproducible", {
# The correlation matrix is quite platform dependent
# It differs between i386 and amd64 on Windows
# and between Travis and my own Linux system
- test_summary_2$Corr <- signif(test_summary_2$Corr, 1)
+ # Even more so when using the Eigen method
+ test_summary_2$Corr <- NULL
expect_known_output(print(test_summary_2), "summary_DFOP_FOCUS_D_eigen.txt")
test_summary_3 <- summary(f_sfo_sfo_desolve)

Contact - Imprint