tests/testthat/test-od2line.R

context("Test the od2line function")

test_that(
  desc = "od2line generates SpatialLinesDataFrame output",
  code = {
    l <- od2line(flow = flow, zones = cents_sf)
    expect_true(is(l, "sf"))
  }
)
ropensci/stplanr documentation built on March 15, 2024, 4:32 a.m.