| style_hyperlink {cli} | R Documentation |
Terminal Hyperlinks
style_hyperlink(text, url) ansi_has_hyperlink_support()
text |
Text to show. |
url |
URL to link to. |
ansi_hyperlink() creates an ANSI hyperlink.
ansi_has_hyperlink_support() checks if the current stdout()
supports hyperlinks.
See also https://gist.github.com/egmontkob/eb114294efbcd5adb1944c9f3cb5feda.
Styled ansi_string for style_hyperlink().
Logical scalar for ansi_has_hyperlink_support().
cat("This is an", style_hyperlink("R", "https://r-project.org"), "link.\n")
ansi_has_hyperlink_support()