tests/testthat/test_plotLeaflet.r

# load libraries
testthat::test_that("We can download records and plot them 
  with plot leaflet.", {

  ## we don't want this to run on CRAN
  skip_on_cran()
  fiftyds <- get_datasets(limit = 50)

  output <- plotLeaflet(fiftyds)
  testthat::expect_is(output, "leaflet")

})

testthat::test_that("We can download records and plot a single site
  with plot leaflet.", {

  ## we don't want this to run on CRAN
  skip_on_cran()
  fiftyds <- get_datasets(limit = 50)

  output <- plotLeaflet(fiftyds[[1]])
  testthat::expect_is(output, "leaflet")
})

Try the neotoma2 package in your browser

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

neotoma2 documentation built on May 29, 2024, 6:21 a.m.