Terminal Hyperlinks
hyperlink(text, url)
has_hyperlink()Text to show. text and url are recycled to match their
length, via a paste0() call.
URL to link to.
Logical scalar, for has_hyperlink().
hyperlink()` creates an ANSI hyperlink.
has_hyperlink() checks if the current stdout() supports hyperlinks.
terminal links.
See also https://gist.github.com/egmontkob/eb114294efbcd5adb1944c9f3cb5feda.
cat("This is an", hyperlink("R", "https://r-project.org"), "link.\n")
#> This is an R link.
has_hyperlink()
#> [1] FALSE