inst/tinytest/test_load_package.R

test_load_package <- function() {

expect_error(stop(load_package("notavailablepackage")))

  invisible(NULL)
}

test_load_package()

Try the install.load package in your browser

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

install.load documentation built on Aug. 21, 2023, 9:09 a.m.