tests/testthat/helper-skip.R

#' Skip test if Julia or Circuitscape is not available
skip_if_no_julia <- function() {
  skip_on_cran()
  if (!.cs_env$julia_ready) {
    tryCatch(
      cs_setup(quiet = TRUE),
      error = function(e) {
        skip("Julia or Circuitscape/Omniscape not available")
      }
    )
  }
  if (!.cs_env$julia_ready) {
    skip("Julia or Circuitscape/Omniscape not available")
  }
}

Try the circuitscaper package in your browser

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

circuitscaper documentation built on April 9, 2026, 5:09 p.m.