Nothing
test_that("explore_file works", {
expect_error(explore_file())
t = tempdir()
expect_error(explore_file(t))
# empty file
fp = file.path(t, "empty.geojson")
write("", fp)
expect_error(explore_file(fp))
file.remove(fp)
js <- c(
'[
{"type":"Point","coordinates":[0,0]},
{"type":"LineString","coordinates":[[-1,-1],[1,1]]},
{
"type": "FeatureCollection",
"features": [
{
"type": "Feature",
"properties": {"id":1},
"geometry": {"type": "Point", "coordinates": [100.0, 0.0]}
}
]
}
]'
)
fp = file.path(t, "test.geojson")
write(js, fp)
ps = tgver::explore_file(fp, background = TRUE)
expect_true(inherits(ps, "r_process"))
ps$kill()
file.remove(fp)
})
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.