tests/testthat/test-get_maptypes.R

skip_on_cran()
context("get_maptypes")

test_that("get_maptypes()", {
  expect_named(expect_is(expect_length(get_maptypes(), 8), "list"), c("osm", "osm_stamen", "osm_stadia", "osm_thunderforest", 
                                                                      "carto", "mapbox", "esri", "maptiler"))
  expect_is(get_maptypes("osm"), "character")
})

Try the basemaps package in your browser

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

basemaps documentation built on Nov. 1, 2024, 5:07 p.m.