Title: | Document a Universe of Packages |
---|---|
Description: | Creates a data frame containing the metadata associated with the documentation of a collection of R packages. It allows for linking topic names to their corresponding documentation online. If you maintain a universe meta-package, it helps create a comprehensive reference for its website. |
Authors: | Mauro Lepore [aut, cre, cph] |
Maintainer: | Mauro Lepore <[email protected]> |
License: | MIT + file LICENSE |
Version: | 0.1.0 |
Built: | 2024-11-25 14:59:07 UTC |
Source: | CRAN |
Create a data.frame with documentation metadata of one or more packages. If you develop a universe, such as the tidyverse or tidymodels, dverse helps you to easily create a universe-wide reference for the pkgdown website of your meta-package.
document_universe(x, url_template = NULL)
document_universe(x, url_template = NULL)
x |
A character vector giving concepts or package names to match. |
url_template |
Character. A template to generate links to documentation
based on the column names of the output – typically |
A data frame.
library(glue) library(tibble) url_template <- "https://{package}.tidyverse.org/reference/{topic}.html" document_universe(c("glue", "tibble"), url_template)
library(glue) library(tibble) url_template <- "https://{package}.tidyverse.org/reference/{topic}.html" document_universe(c("glue", "tibble"), url_template)