tests/testthat/test-DAISIE_plot_sims.R

test_that("Example 1", {
  skip("Plots: Run and manually inspect output")
  data(islands_1type_1000reps)
  expect_silent(
    DAISIE_plot_sims(
      island_replicates = islands_1type_1000reps
    )
  )
})

test_that("Example 2", {
  skip("Plots: Run and manually inspect output")
  data(islands_2types_1000reps)
  expect_silent(
    DAISIE_plot_sims(
      island_replicates = islands_2types_1000reps
    )
  )
})

test_that("Plot plus one", {
  skip("Plots: Run and manually inspect output")
  data(islands_1type_1000reps)
  expect_silent(
    DAISIE_plot_sims(
      island_replicates = islands_1type_1000reps,
      plot_plus_one = TRUE
    )
  )
  expect_silent(
    DAISIE_plot_sims(
      island_replicates = islands_1type_1000reps,
      plot_plus_one = FALSE
    )
  )
})

Try the DAISIE package in your browser

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

DAISIE documentation built on Oct. 22, 2023, 1:06 a.m.