R/check_internet.R

Defines functions check_internet

Documented in check_internet

# BASIC CHECK FOR INTERNET CONNECTION =============================================================

#' A function to check for internet connection. Used within `load_*()` functions.
#' @importFrom curl has_internet
#' @importFrom httr status_code

check_internet <- function(){
  if(curl::has_internet() == FALSE){stop("No internet connection found.")}
}
pvdmeulen/uktrade documentation built on Feb. 18, 2025, 7:54 p.m.