CRAN status lifecycle Travis build status Coverage status AppVeyor build status

The goal of tst is geo-spatial data testing using the 'testthat' package frameworks. Geo Spatial Data tests including CRS, geometry types, spetial relatons and units correctly.

NOTES tst: total station theodolite is an electronic/optical instrument used for surveying and building construction.


You can install the develop version of tst from GitHub with:

# install.packages("remotes")


#> Linking to GEOS 3.6.1, GDAL 2.1.3, proj.4 4.9.3

x <- st_point(c(0, 0))
expect_geom_type(x, "POINT") # TRUE
expect_geom_type(x, "POLYGON") # FALSE
#  Error: `x`, geometry type is POINT, not POLYGON. 
sfc <- st_sfc(st_point(c(0, 0)),
              st_point(c(1, 1)))
sf <- st_sf(a = 1:2, geom = sfc)
st_crs(sf) <- 4326

expect_crs(sf, 4326)



We will compatible to the objects provided by the following packages. Please write the issue if there is a request with other methods. We welcome your contribution :)

Code of Conduct

Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms.

uribo/tst documentation built on April 6, 2020, 11:58 p.m.