tests/testthat/test-wbt_floor.R

context("wbt_floor")

test_that("Returns the largest (closest to positive infinity) value that is less than or equal to the values in a raster", {

  skip_on_cran()
  dem <- system.file("extdata", "DEM.tif", package = "whitebox")
  ret <- wbt_floor(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 Sept. 7, 2020, 3 p.m.