Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
romainfrancois committed Feb 23, 2024
1 parent b1901a5 commit e8460cd
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 11 deletions.
1 change: 0 additions & 1 deletion R/to.R
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ link <- function(url, text) {
#' @param package package
#'
#' @examples
#' link::to
#' \dontrun{
#' link::to(dplyr::summarise)
#' link::to(package = "admiral")
Expand Down
7 changes: 4 additions & 3 deletions README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ pak::pak("tadascience/link")
This is a basic example which shows you how to solve a common problem:

```{r example}
link::to(dplyr::mutate)
link::to(package = "dplyr")
link::to("gather", package = "tidyr")
link::to(package = "admiral")
link::to("init", package = "teal")
link::to(teal::init)
```
16 changes: 10 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,14 @@ pak::pak("tadascience/link")
This is a basic example which shows you how to solve a common problem:

``` r
link::to(dplyr::mutate)
#> <a href="https://dplyr.tidyverse.org/reference/mutate.html">dplyr::mutate()</a>
link::to(package = "dplyr")
#> <a href="https://dplyr.tidyverse.org">dplyr</a>
link::to("gather", package = "tidyr")
#> <a href="https://tidyr.tidyverse.org/reference/gather.html">tidyr::gather()</a>
link::to(package = "admiral")
#> <a href="https://pharmaverse.github.io/admiral/">admiral</a>

link::to("init", package = "teal")
#> Registered S3 method overwritten by 'teal':
#> method from
#> c.teal_slices teal.slice
#> <a href="https://insightsengineering.github.io/teal/latest-tag/reference/init.html">teal::init()</a>
link::to(teal::init)
#> <a href="https://insightsengineering.github.io/teal/latest-tag/reference/init.html">teal::init()</a>
```
1 change: 0 additions & 1 deletion man/to.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit e8460cd

Please sign in to comment.