inst/bad1/tests/testthat/test.R

context("library() ok")

test_that("library is ok here", {
  library("stats")
  expect_true(TRUE)
})

Try the goodpractice package in your browser

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

goodpractice documentation built on Aug. 31, 2022, 1:05 a.m.