inst/tinytest/test_webmap.R

# setup tinytest for checkmate functionality
library("tinytest")
library("checkmate")
using("checkmate")

# test access to TNM web map tile service
map <- make_map(protocol = "WMTS")
checkmate::expect_class(map, classes = c("leaflet", "htmlwidget"))

# test access to TNM web map services
map <- make_map(protocol = "WMS")
checkmate::expect_class(map, classes = c("leaflet", "htmlwidget"))

Try the webmap package in your browser

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

webmap documentation built on April 4, 2025, 4:40 a.m.