From 86e6d8368109d1a9c631af45227659178ce934ee Mon Sep 17 00:00:00 2001 From: Johannes Ranke Date: Mon, 21 Oct 2019 21:52:33 +0200 Subject: Fix platform dependence of the correlation matrix Especially on winbuilder (i386 and amd64) --- tests/testthat/test_plots_summary_twa.R | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'tests/testthat/test_plots_summary_twa.R') 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) -- cgit v1.2.1