tests/testthat/test_tibble2raster.R

# nolint start
context("util_tibble2raster")

maptib <- util_raster2tibble(fractal_landscape)
mapras <- util_tibble2raster(maptib)

test_that("basic functionality", {
  expect_error(util_tibble2raster(maptib), NA)
})

test_that("nlm_edgegradient behaves like it should", {
  expect_that(mapras, is_a("RasterLayer"))
})
# nolint end

Try the landscapetools package in your browser

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

landscapetools documentation built on May 1, 2019, 9:22 p.m.