Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

autolink

Automatically link inline code


Description

Automatically link inline code

Usage

autolink(text)

autolink_url(text)

Arguments

text

String of code to highlight and link.

Value

If text is linkable, an HTML link for autolink(), and or just the URL for autolink_url(). Both return NA if the text is not linkable.

Examples

autolink("stats::median()")
autolink("vignette('grid', package = 'grid')")

autolink_url("stats::median()")

downlit

Syntax Highlighting and Automatic Linking

v0.2.1
MIT + file LICENSE
Authors
Hadley Wickham [aut, cre], RStudio [cph]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.