library(testthat) library(hrf) tests_dir <- "testthat" if (!endsWith(getwd(), "tests")) { tests_dir <- file.path("tests", tests_dir) } source(file.path(tests_dir, "test-design.R"))