diff options
author | Johannes Ranke <jranke@uni-bremen.de> | 2019-07-04 08:10:33 +0200 |
---|---|---|
committer | Johannes Ranke <jranke@uni-bremen.de> | 2019-07-04 08:10:33 +0200 |
commit | 7e8d788d298b8e1492fd8f62d88456e99e0f5992 (patch) | |
tree | 0ec78730e5d6cd5367420b2f04effbd1cc1b0f3f /tests/testthat/test_nafta.R | |
parent | d004cfb133b2b38808a736916152b85c5df6568f (diff) |
Address failures of CRAN checks, improve NEWSv0.9.49.5
Static documentation rebuilt by pkgdown
Diffstat (limited to 'tests/testthat/test_nafta.R')
-rw-r--r-- | tests/testthat/test_nafta.R | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/tests/testthat/test_nafta.R b/tests/testthat/test_nafta.R index 096287aa..8cb1895b 100644 --- a/tests/testthat/test_nafta.R +++ b/tests/testthat/test_nafta.R @@ -39,7 +39,9 @@ test_that("Test data from Appendix B are correctly evaluated", { expect_known_output(print(res), "NAFTA_SOP_Appendix_B.txt") plot_nafta <- function() plot(res) - vdiffr::expect_doppelganger("NAFTA SOP Appendix B", plot_nafta) + if(requireNamespace("vdiffr", quietly = TRUE)) { + vdiffr::expect_doppelganger("NAFTA SOP Appendix B", plot_nafta) + } }) test_that("Test data from Appendix D are correctly evaluated", { @@ -61,5 +63,7 @@ test_that("Test data from Appendix D are correctly evaluated", { expect_known_output(print(res), "NAFTA_SOP_Appendix_D.txt") plot_nafta <- function() plot(res) - vdiffr::expect_doppelganger("Plot NAFTA analysis", plot_nafta) + if(requireNamespace("vdiffr", quietly = TRUE)) { + vdiffr::expect_doppelganger("Plot NAFTA analysis", plot_nafta) + } }) |