tests/testthat/test-tm_layers_polygons.R

test_that("tm_borders work", {
	# Borders only
	map <- tm_shape(World) + tm_borders()
	map
	expect_equal(map[[1]]$shp_name, "World")
})
r-tmap/tmap documentation built on June 1, 2025, 1:56 p.m.