Skip to content

Commit 1c8f501

Browse files
committed
Skip raster compression tests on old versions of WhiteboxTools
1 parent 6c91240 commit 1c8f501

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/testthat/test-wbt.R

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,12 +186,14 @@ test_that("wbt utility functions [requires WhiteboxTools installed]", {
186186
expect_true(is.character(wbt_tool_help()))
187187
})
188188

189-
test_that("wbt raster compression", {
189+
test_that("wbt raster compression (requires WhiteboxTools v2.1.0 or higher)", {
190190

191191
skip_on_cran()
192192

193193
skip_if_not(check_whitebox_binary())
194194

195+
skip_if_not(wbt_version() >= "2.1.0")
196+
195197
dem <- sample_dem_data()
196198

197199
skip_if(dem == "")

0 commit comments

Comments
 (0)