tests/testthat/test-check_r_version.R

test_that("check_r_version works", {
  if (!is_gha()) testthat::skip_if_offline(host = "bioconductor.org")
  
  testthat::expect_equal(
    check_r_version(r = "4.1"),
    "4.1"
  )
  testthat::expect_equal(
    check_r_version(r = "release_*"),
    "release"
  )
  testthat::expect_error(
    check_r_version(r = "10000.0000")
  )
})

Try the rworkflows package in your browser

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

rworkflows documentation built on May 6, 2026, 1:06 a.m.