tests/testthat/testDivProfile.R

context("DivProfile")

# Check DivProfile 
testthat::test_that("DivProfile with simulations is correct", {
  testthat::skip_on_cran()
  
  data(Paracou618)
  # Calculate DivProfile
  testthat::expect_true(is.DivProfile(dp <- DivProfile(q.seq = 0:2, Paracou618.MC, NumberOfSimulations = 10)))
  # Plot it
  testthat::expect_silent(plot(dp))
})

Try the entropart package in your browser

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

entropart documentation built on Sept. 26, 2023, 5:09 p.m.