tests/tinytest.r

if (requireNamespace("tinytest", quietly = TRUE)) {
  
  library(h5lite)
  
  if (dir.exists("tinytests")) { test_dir <- "tinytests"       }
  else                         { test_dir <- "tests/tinytests" }
  
  results <- tinytest::run_test_dir(test_dir)
  passed  <- as.logical(results)
  
  print(results)
  
  if (!all(passed)) {
    stop("One or more tinytest tests failed.")
  }
}

Try the h5lite package in your browser

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

h5lite documentation built on May 19, 2026, 1:07 a.m.