tests/testthat/testhelpers.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')
}

Try the opensensmapr package in your browser

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

opensensmapr documentation built on March 31, 2023, 11:45 p.m.