powered by
online() uses curl::has_internet to check whether the machine is connected to the internet
online()
online()using_host(hostname)
using_host(hostname)
A logical value
String containing a hostname or hostnames to check
online() using_host("somehost.fakedomain.com")
Run the code above in your browser using DataLab