# expect given number of points in geometry
expect_npoints <- function(object, expected, ...) {
expect_equal(st_npoints(object), expected, ...)
}
expect_crs <- function(object, expected, ...) {
expect_equal(sf::st_crs(object), sf::st_crs(expected))
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.