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 fritools package in your browser

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

fritools documentation built on June 8, 2025, 11:59 a.m.