Does the current session have an internet connection?

hasInternet()

Value

TRUE on success; FALSE on failure, with cause attribute set.

Examples

hasInternet()
#> [1] TRUE