ba_can_internet.Rd
Check for internet connection.
ba_can_internet(url = "www.google.org")
url | a url to check (default www.google.org) |
---|
NULL when internet access is available or ERROR when internet access is not available
Stack Overflow and has_internet
Other brapiutils: as.ba_db
,
ba_check
, ba_connect
,
ba_db
, ba_login
,
ba_logout
, is.ba_con
,
print.ba_con
,
print.ba_db_list
if (interactive()) { library(brapi) # Checks against a well known and high uptime web site. Default: google ba_can_internet() # or use an alternative ba_can_internet("www.amazon.com") }