tests/testthat/test_samples.R

# load libraries
library("testthat")
library("neotoma2")

context("Run Neotoma `test_samples` only when not on CRAN")

test_that("Running samples on a record with multiple chronologies
  pulls the default model.", {

  ## we don't want this to run on CRAN
  skip_on_cran()
  singlechron <- testthat::expect_true({samples(get_downloads(4716)); TRUE})
  multichron <- testthat::expect_true({samples(get_downloads(21007)); TRUE})
  mammals <- testthat::expect_true({samples(get_downloads(4564)); TRUE})
})

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.