tests/testthat.R

library(testthat)
library(birtr)

check_api <- function() {
#  if (not_working()) {
    skip("API not available")
#  }
}

test_that("foo api returns bar when given baz", {
  check_api()
  ...
})

Try the birtr package in your browser

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

birtr documentation built on May 2, 2019, 9:18 a.m.