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 23, 2024, 9:58 a.m.