test_that ("get_graph", {
dat <- road_data_sample %>% magrittr::extract2 ("compact")
graph <- get_graph (dat)
isSf <- is (graph, "sf")
testthat::expect_true (isSf)
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.