tests/testthat/test-geom-map.R

test_that("geom_map() checks its input", {
  expect_snapshot_error(geom_map(map = letters))
  expect_snapshot_error(geom_map(map = mtcars))
})

Try the ggplot2 package in your browser

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

ggplot2 documentation built on June 22, 2024, 11:35 a.m.