Learn R Programming

ami (version 0.1.1)

online: Checks related to networking

Description

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

Usage

online()

using_host(hostname)

Value

A logical value

Arguments

hostname

String containing a hostname or hostnames to check

Examples

Run this code
online()
using_host("somehost.fakedomain.com")

Run the code above in your browser using DataLab