You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
opensensmapR/tests/testthat/testhelpers.R

10 lines
172 B
R

check_api = function() {
skip_on_cran()
code = NA
try({
code = httr::status_code(httr::GET(osem_endpoint()))
})
if (is.na(code)) skip('API not available')
}