inst/tinytest/test_install_load.R

test_install_load <- function() {

options(repos = "https://cloud.r-project.org")

expect_error(stop(install_load("notavailablepackage")))

  invisible(NULL)
}

test_install_load()

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.