tests/testthat/helper-connection.R

sas_connect_if_no_session <- function(cfgname) {
  tryCatch(
    {
      suppressWarnings(suppressMessages(sas_connect(cfgname)))
    },
    error = function(e) {
      message <- paste0(
        "Cannot connect to \"",
        cfgname,
        "\" configuration."
      )
      skip(message)
    }
  )
}

Try the sasquatch package in your browser

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

sasquatch documentation built on Feb. 28, 2026, 1:07 a.m.