Skip to content

Commit

Permalink
Use vdiffr conditionally, thanks to Lionel Henry for the fix
Browse files Browse the repository at this point in the history
  • Loading branch information
adamhsparks committed Dec 8, 2020
1 parent 98bf5b8 commit b9227fc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 0 additions & 1 deletion tests/testthat.R
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
library(testthat)
library(vdiffr)
library(hagis)

test_check("hagis")
4 changes: 4 additions & 0 deletions tests/testthat/helper_functions.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
expect_doppelganger <- function(title, fig, path = NULL, ...) {
testthat::skip_if_not_installed("vdiffr")
vdiffr::expect_doppelganger(title, fig, path = path, ...)
}

0 comments on commit b9227fc

Please sign in to comment.