tests/testthat/test-pathdistGen.R

context("pathdistGen")

test_that("pathdistGen works", {
  expect_error(pathdistGen(1, raster::raster(1), 1, progressbar = FALSE),
  						 "spdf object must be of class SpatialPointsDataFrame")
  
})

Try the ipdw package in your browser

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

ipdw documentation built on Nov. 27, 2018, 1:05 a.m.