tests/testthat/test-assign_voro.R

test_that("clust_it works", {
        a <- assign_voro(pop_epp, centers_epp, crs = sp::CRS("+init=epsg:32721"))
        expect_equal(ncol(a), 7)
        expect_error(a <- assign_voro(pop_epp, centers = rbind(centers_epp, centers_epp[ 1:3,]), 
                         crs = sp::CRS("+init=epsg:32721")))
})

Try the EPP package in your browser

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

EPP documentation built on Jan. 25, 2022, 5:07 p.m.