tests/testthat/helpers.R

skip_if_gisco_offline <- function() {
  if (gisco_check_access()) {
    return(invisible(TRUE))
  }

  testthat::skip("GISCO API not reachable")

  invisible()
}

Try the giscoR package in your browser

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

giscoR documentation built on June 17, 2026, 9:10 a.m.