tests/testthat.R

library(testthat)

test_that("Testing the URL validity", {
  expect_equal(httr::status_code(httr::GET("https://omabrowser.org/api")), 200 ) #checking that the server is live and accesible

})

Try the OmaDB package in your browser

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

OmaDB documentation built on Nov. 13, 2020, 2 a.m.