tests/testthat/test_get_documentation.R

library("testthat")
library("neotoma2")

context("Retrieves Neotoma2 R package documentation in HTML")
test_that("Manual loading fails if interactive is false.", {
  skip_on_cran()
  testthat::expect_error(get_documentation())
})

test_that("Manual loading succeeds when interactive is true:", {
  skip_on_cran()
  testthat::expect_null(rlang::with_interactive(get_manual(),
                                                value=TRUE))
})

Try the neotoma2 package in your browser

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

neotoma2 documentation built on Dec. 6, 2025, 5:07 p.m.