tests/testthat/helper-osrm.R

skip_if_no_osrm <- function() {
  testthat::skip_on_cran()

  if (isTRUE(getOption("osrm.backend.skip_osrm_tests", FALSE))) {
    reason <- getOption("osrm.backend.install_error", "OSRM backend binaries are unavailable")
    testthat::skip(reason)
  }
}

Try the osrm.backend package in your browser

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

osrm.backend documentation built on April 26, 2026, 9:06 a.m.