tests/testthat/test-get_manual.R

# tests for `get_manual()`.

test_that("Manual loading fails if interactive is false.", {
  #skip_on_cran()
  expect_error(get_manual())
})

test_that("Manual loading succeeds when interactive is true:", {
  #skip_on_cran()
  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 July 9, 2023, 7:37 p.m.