R/zzz.R

Defines functions check_offline

check_offline <- function(action = stop, msg = "Being offline.", ...) {
  offline <- !curl::has_internet()
  if (offline) {
    action(msg, ...)
  }
  offline
}
atusy/transdoc documentation built on May 17, 2020, 4:38 p.m.