tests/testthat/test-wbt_arc_tan.R

context("wbt_arc_tan")

test_that("Returns the inverse tangent (arctan) of each values in a raster", {

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

})
giswqs/whiteboxR documentation built on Oct. 14, 2024, 2:38 a.m.