tests/testthat/test-overline.R

context("Test overline function")

test_that(
  desc = "overline generates a SpatialLinesDataFrame",
  code = {
    rnet <- overline(sl = routes_fast[2:4, ], attrib = "length")
    expect_is(object = rnet, class = "SpatialLinesDataFrame")
  }
)

Try the stplanr package in your browser

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

stplanr documentation built on Oct. 20, 2018, 5:05 p.m.