tests/testthat/test-stat-spat-coordinates.R

test_that("multiplication works", {
  cyl <- terra::vect(system.file("extdata/cyl.gpkg", package = "tidyterra"))

  pl <- ggplot2::ggplot(cyl) +
    stat_spat_coordinates()
  expect_s3_class(pl, "ggplot")
})

Try the tidyterra package in your browser

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

tidyterra documentation built on March 11, 2026, 9:08 a.m.