inst/tinytest/test_with_dir.R

if (interactive()) {
  pkgload::load_all()
  library("tinytest")
}

if (run_r_tests_for_known_hosts()) {
  expectation <- normalizePath(tempdir(), mustWork = FALSE)
  result <- normalizePath(with_dir(expectation, getwd()))

  expect_identical(expectation, result)
}
if (interactive()) {

}

Try the fritools2 package in your browser

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

fritools2 documentation built on July 9, 2023, 7:07 p.m.