ba_can_internet: ba_can_internet

Description Usage Arguments Value References See Also Examples

View source: R/ba_can_internet.R

Description

Check for internet connection.

Usage

1
ba_can_internet(url = "www.google.org")

Arguments

url

a url to check (default www.google.org)

Value

NULL when internet access is available or ERROR when internet access is not available

References

Stack Overflow and has_internet

See Also

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

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
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.google.com")

}

c5sire/brapi documentation built on Oct. 17, 2019, 11:45 a.m.