test_connection: Test for internet connection, timeout and status
Description
Constructs a function for trying an URL
Usage
test_connection(url = NULL, timeout = 10)
Value
HTTP response or a conditionMessage
Arguments
- url
URL to query
- timeout
Timeout time in seconds.
Author
Pyry Kantanen (maintainer), Kostas Vasilopoulos