tests/testthat/test_makeNetwork.R

context("makeNetwork function")

test_that("there is a warning on zero distances", {
  coordinates = matrix(c(1, 2, 1, 2), byrow = TRUE, ncol = 2L)
  expect_warning(makeNetwork(coordinates), regexp = "zero")
})

Try the netgen package in your browser

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

netgen documentation built on Jan. 9, 2020, 1:07 a.m.