Check if text is a relative link or URL

is_link(text)

Arguments

text

A character string

Value

TRUE or FALSE

Examples

is_link("www.google.com")
#> [1] TRUE
is_link("figs/plot.png")
#> [1] TRUE