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/")

Arguments

site

string defaults to https://github.com

Value

logical

Examples

is_online()
#> [1] TRUE