tests/testthat/test-wbt_increment.R

context("wbt_increment")

test_that("Increases the values of each grid cell in an input raster by 10 (see also InPlaceAdd)", {

  skip_on_cran()
  skip_if_not(check_whitebox_binary())
  dem <- sample_dem_data(); skip_if(dem == "")
  ret <- wbt_increment(input = dem, output = "output.tif")
  expect_match(ret, "Elapsed Time")

})

Try the whitebox package in your browser

Any scripts or data that you put into this service are public.

whitebox documentation built on Nov. 19, 2023, 1:07 a.m.