Description Usage Arguments Value References See Also Examples
View source: R/ba_can_internet.R
Check for internet connection.
1 | 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
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")
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.