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"))
  }
)

Try the stplanr package in your browser

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

stplanr documentation built on Sept. 11, 2024, 5:22 p.m.