From 05bc9bdc500a4ea4dc0665ce425104d841057fba Mon Sep 17 00:00:00 2001 From: Mike Mahoney Date: Mon, 29 Apr 2024 12:09:04 -0400 Subject: [PATCH] Condition tests on terra --- tests/testthat/test-multi_scale.R | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/testthat/test-multi_scale.R b/tests/testthat/test-multi_scale.R index dbfd8ce..a18f5ba 100644 --- a/tests/testthat/test-multi_scale.R +++ b/tests/testthat/test-multi_scale.R @@ -779,6 +779,7 @@ test_that("Passing arguments via `...` errors when using grids", { }) test_that("ww_multi_scale with raster args can handle classification metrics (#60)", { + skip_if_not_installed("terra") l1 <- terra::rast(matrix(sample(1:10, 100, TRUE), nrow = 10)) l2 <- l1 @@ -795,6 +796,7 @@ test_that("ww_multi_scale with raster args can handle classification metrics (#6 }) test_that("ww_multi_scale with raster data can handle classification metrics (#60)", { + skip_if_not_installed("terra") l1 <- terra::rast(matrix(sample(1:10, 100, TRUE), nrow = 10)) l2 <- l1