Description Usage Arguments Value Note Examples
Pings the specified URL(s) and/or IP address(es) to determine if connection can be made/internet is up/websites are up.
1 2 | canConnect(test.site = "8.8.8.8", n = 1, timeout = 1000, clean = TRUE,
ipkey = NULL)
|
test.site |
Character; the site URL or IP address to test connection to. Defaults to "8.8.8.8", Google's DNS-A server. Function |
n |
Numeric; number of times to try the connection. Defaults to 1 |
timeout |
Numeric; time (in milliseconds) to try to connect before
returning |
clean |
Logical; should the input |
ipkey |
Character; optional argument used if test.site is directed to the test connection to the SMIF server. |
Logical; logical vector corresponding to whether or not a connection
could be made to given site(s). Length will be equal to length(test.site)
To simply test if internet connection is possible, run canConnect() or canConnect To test specific sites: Google A: "8.8.8.8", Google B: "8.8.4.4", Google Search: "www.google.com" or "google.com"
1 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.