tests/testthat/helper.R

skip_if_offline <- function() {
  if (!is_online()) skip("Offline")
}

if (getOption("repos")["CRAN"] == "@CRAN@") {
  options(repos = structure(c(CRAN = "http://cran.rstudio.com")))
}
r-hub/pkgsearch documentation built on Sept. 28, 2024, 10:55 p.m.