tests/testthat/helper-fixtures.R

test_fixture_path <- function(name) {
  testthat::test_path("fixtures", paste0(name, ".rds"))
}

load_test_fixture <- function(name) {
  path <- test_fixture_path(name)
  testthat::skip_if_not(
    file.exists(path),
    paste("Missing test fixture:", name)
  )
  readRDS(path)
}

Try the OncoBayes2 package in your browser

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

OncoBayes2 documentation built on Aug. 5, 2026, 1:08 a.m.