tests/testthat/test-url_exists.R

test_that("url_exists works", {
  ## Don't run on CRAN servers due to ongoing internet connectivity issues
  if(!is_gha()) testthat::skip_if_offline()
  
  testthat::expect_true(
    rworkflows:::url_exists("https://github.com/neurogenomics/rworkflows")
  )
  testthat::expect_false(
    rworkflows:::url_exists("https://github.com/neurogenomics/rworkflowsTYPOOOOO")
  )
})

Try the rworkflows package in your browser

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

rworkflows documentation built on May 29, 2024, 2:37 a.m.