Generate url for topic/article/package

href_topic(topic, package = NULL)

href_article(article, package = NULL)

href_package(package)

Arguments

topic, article

Topic/article name

package

Optional package name

Value

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

Examples

href_topic("t")
#> [1] "https://rdrr.io/r/base/t.html"
href_topic("DOESN'T EXIST")
#> [1] NA
href_topic("href_topic", "downlit")
#> [1] NA

href_package("downlit")
#> [1] "https://downlit.r-lib.org/"