href_topic {downlit}R 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")

[Package downlit version 0.4.2 Index]