tests/testthat/test_plot.R

library("testthat")
library("neotoma2")

context("Test plots")
testthat::test_that("Plot records with plot", {
  skip_on_cran()
  ten <- get_sites(limit = 10)
  testthat::expect_error(plot(ten), NA)
})

testthat::test_that("Plot a single record with plot.", {
  skip_on_cran()
  five <- get_sites(limit = 5)
  testthat::expect_error(plot(five[[1]]), NA)
})

Try the neotoma2 package in your browser

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

neotoma2 documentation built on Dec. 6, 2025, 5:07 p.m.