Skip to contents

online() uses curl::has_internet to check whether the machine is connected to the internet

Usage

online()

using_host(hostname)

Arguments

hostname

String containing a hostname or hostnames to check

Value

A logical value

Examples

online()
#> [1] TRUE
using_host("somehost.fakedomain.com")
#> [1] FALSE