tests/testthat/test-reptSearch.R

test_that("reptSearch returns expected output", {
  skip_on_cran()
  skip_if_not(Sys.getenv("NOT_CRAN") == "true")
  
  result <- reptSearch("Philodryas livida", verbose = FALSE)
  
  expect_type(result, "list")
  expect_true("species" %in% names(result))
  expect_gte(length(result), 0)
})

Try the letsRept package in your browser

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

letsRept documentation built on June 22, 2026, 9:09 a.m.