R/verify_tinytest.R

Defines functions verify_tinytest_used

verify_tinytest_used <- function() {
  if (!dir.exists("tests") || 
      !file.exists(file.path("tests", "tinytest.R")) ||
      !dir.exists(file.path("inst", "tinytest"))) {
    stop("tinytest is not currently used, please set it up, e.g. by tinytest::setup_tinytest()")
    return(FALSE)
  }

  return(TRUE)
}

Try the roxytest package in your browser

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

roxytest documentation built on Jan. 11, 2023, 5:14 p.m.