tests/testthat/test-tools.R

context("Tools")

test_that("it checks for packages", {
  skip_on_cran()
  expect_true(require_package("coala"))
  expect_error(require_package("2l3ihjrpaiwhf"))
})

test_that("onLoad does not throw an error", {
  expect_equal(coala:::.onLoad(NULL, NULL), NULL)
})

Try the coala package in your browser

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

coala documentation built on May 29, 2024, 11:14 a.m.