Skip to contents

Is each URL (or href) online?

Usage

is_online(x)

Arguments

x

String.

Value

A logical vector.

Examples

url <- c(
  "https://example.com",
  "<a href=https://example.com>example</a>",
  "<a href=https://example.com/bad>bad</a>",
  "bad"
)

is_online(url)
#> [1]  TRUE  TRUE FALSE FALSE