if (require(testthat, quietly = TRUE)) { test_check("blme") } else { cat("package 'testthat' not available; cannot run unit tests\n") }