tests/testthat/test-9-is-online.R

test_that("is online", {
  skip_on_cran()
 
  # Should always be TRUE, but will trigger github action failure if 
  # MRAN is offline
  expect_true(is.online())
})

Try the miniCRAN package in your browser

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

miniCRAN documentation built on March 18, 2022, 6:29 p.m.