tests/testthat/test-filter_duplicates.R

context("filter_duplicates")

las     <- example

test_that("filter_duplicates works with LAS", {
   las@data <- rbind(las@data, las@data)
   las = lidR:::lasupdateheader(las)
   las = filter_duplicates(las)
   expect_equal(npoints(las), 30L)
})

#test_that("filter_duplicates works with LAScatalog", {
#
#})

Try the lidR package in your browser

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

lidR documentation built on Sept. 11, 2024, 5:21 p.m.