tests/testthat/test-sf-PRIMITIVE.R

# context("primitives")
# 
# #
# # test_that("primitives 0D", {
# #   error("no tests!")
# # })
# test_that("primitives 1D", {
#   # inlandwaters[5, ] 
#   minimal_mesh %>% PRIMITIVE() %>% expect_s3_class("PRIMITIVE") %>% 
#     ## test round-trip back to sf
#     sf() %>% expect_s3_class("sf") %>% PRIMITIVE() %>% sf() %>% expect_s3_class("sf")
#   
#   
# })

Try the silicate package in your browser

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

silicate documentation built on Jan. 7, 2023, 1:15 a.m.