R: Is the computer online?

is_online {pingr} | R Documentation

## Is the computer online?

### Description

Ping some name servers that are always (well, almost) up. If these are unreachable, then you are most probably not online.

### Usage

    is_online(timeout = 0.2)

### Arguments

`timeout` | Timeout for the pings.

### Value

Possible values:

- `TRUE` Yes, online.

- `FALSE` No, not online.

- `"nodns"` We re online, but without a DNS service.

### Examples

    is_online()
    is_online(timeout = 0.01)

[Package pingr version 1.2.0 Index]