testthat::context("Testing MakefileR:::throw()") testthat::test_that("throw the MakefileR exception", { error_message <- "hello, testthat" string <- "hello, testthat" testthat::expect_error(MakefileR:::throw(string), error_message) } )