Skip to content

Commit

Permalink
document
Browse files Browse the repository at this point in the history
  • Loading branch information
romainfrancois committed Feb 23, 2024
1 parent 414aca6 commit 6f4d5e7
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 1 deletion.
14 changes: 13 additions & 1 deletion R/to.R
Original file line number Diff line number Diff line change
@@ -1,7 +1,19 @@
link <- function(url, text) {
glue::glue('<a href="{url}">{text}</a>')
}

#' Create a link to a function or a package
#'
#' @param topic topic
#' @param package package
#'
#' @examples
#' link::to
#' \dontrun{
#' link::to(dplyr::summarise)
#' link::to(package = "dplyr")
#' link::to("gather", package = "tidyr")
#' }
#'
#' @importFrom rlang is_string is_call enexpr
#' @importFrom cli cli_abort
#' @export
Expand Down
25 changes: 25 additions & 0 deletions man/to.Rd

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

0 comments on commit 6f4d5e7

Please sign in to comment.