-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME.Rmd
61 lines (45 loc) Β· 1.5 KB
/
README.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
---
output: github_document
---
<!-- README.md is generated from README.Rmd. Please edit that file -->
```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%"
)
```
# link <a href="https://link.tada.science"><img src="man/figures/logo.png" align="right" height="138" /></a>
<!-- badges: start -->
[](https://lifecycle.r-lib.org/articles/stages.html#experimental)
[](https://CRAN.R-project.org/package=link)
[](https://github.com/tadascience/link/actions/workflows/R-CMD-check.yaml)
<!-- badges: end -->
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:
``` r
pak::pak("tadascience/link")
```
## Example
Include this in your `Rmd` or `qmd` document to turn
`<pkg>::<fun>()` and `{<pkg>}` into hyperlinks.
````
`r ''````{r, echo = FALSE}
link::auto()
```
````
You can drop the `{` and the `pkg::` if you like:
````
`r ''````{r, echo = FALSE}
link::auto(keep_braces = FALSE, keep_pkg_prefix = FALSE)
```
````
By default, [bslib](https://rstudio.github.io/bslib/) powered tooltips are
added. You can opt-out with `type = "plain"`.
````
`r ''````{r, echo = FALSE}
link::auto(type = "plain")
```
````