tests/testthat/test-wbt_arc_sin.R

context("wbt_arc_sin")

test_that("Returns the inverse sine (arcsin) 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_sin(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 May 29, 2024, 1:21 a.m.