Hyperlink Automatic Detection

Automatic detection of hyperlinks for packages and calls in the text of 'rmarkdown' or 'quarto' documents.


link

Lifecycle:experimental CRANstatus R-CMD-check

The goal of link is to help blog authors include links to their prose.

Installation

You can install the development version of link like so:

pak::pak("tadascience/link")

Example

Include this in your Rmd or qmd document to turn <pkg>::<fun>() and {<pkg>} into hyperlinks.

```{r, echo = FALSE}
link::auto()
```

You can drop the { and the pkg:: if you like:

```{r, echo = FALSE}
link::auto(keep_braces = FALSE, keep_pkg_prefix = FALSE)
```

By default, bslib powered tooltips are added. You can opt-out with type = "plain".

```{r, echo = FALSE}
link::auto(type = "plain")
```

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("link")

2024.4.0 by Romain François, 3 years ago


https://link.tada.science/, https://github.com/tadascience/link


Report a bug at https://github.com/tadascience/link/issues


Browse source code at https://github.com/cran/link


Authors: Romain François [aut, cre] , tada.science [cph, fnd]


Documentation:   PDF Manual  


MIT + file LICENSE license


Imports bslib, downlit, glue, htmltools, httr2, knitr, rlang, stringr, xml2


See at CRAN