href_topic: Generate url for topic/article/package

View source: R/link.R

href_topicR Documentation

Generate url for topic/article/package

Description

Generate url for topic/article/package

Usage

href_topic(topic, package = NULL, is_fun = FALSE)

href_article(article, package = NULL)

href_package(package)

Arguments

topic, article

Topic/article name

package

Optional package name. If not supplied, will search in all attached packages.

is_fun

Only return topics that are (probably) for functions.

Value

URL topic or article; NA if can't find one.

Examples

href_topic("t")
href_topic("DOESN'T EXIST")
href_topic("href_topic", "downlit")

href_package("downlit")

r-lib/downlit documentation built on June 12, 2024, 1:55 p.m.