R/attach.R
is_online.Rd
Checks whether the system can ping github.com. Adapted from:https://stackoverflow.com/questions/5076593/how-to-determine-if-you-have-an-internet-connection-in-r
is_online(site = "https://github.com/")
string defaults to https://github.com
logical
is_online() #> [1] TRUE