Description Usage Arguments Details Examples
Expect geometry type
1 2 3 4 5 6 7  expect_geom_type(
object,
type = c("POINT", "LINESTRING", "POLYGON", "MULTIPOINT", "MULTILINESTRING",
"MULTIPOLYGON", "GEOMETRYCOLLECTION")
)
expect_dimension(object, value)

object 
object of class 
type 
test equality geometry type ( 
value 
expected value 
expect_geom_type()
: test with which geometry type. See also st_geometry_type
.
expect_dimention()
: test with N's spatial dimension of geometry. Expect values are 0 for points,
1 for lines, 2 for planar and NA for empty. See st_dimension
to more details.
1 2 3 4 5  library(sf)
x < st_point(c(0, 0))
expect_geom_type(x, "POINT")
expect_dimension(x, 0) # For point

Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.