https://github.com/maurolepore/pkgdoc
[R-package] Reference multiple R-packages in one place
https://github.com/maurolepore/pkgdoc
devlopment metapackage package pkgdoc pkgdown r reference vignette website
Last synced: 10 months ago
JSON representation
[R-package] Reference multiple R-packages in one place
- Host: GitHub
- URL: https://github.com/maurolepore/pkgdoc
- Owner: maurolepore
- License: gpl-3.0
- Created: 2018-12-26T15:47:06.000Z (over 7 years ago)
- Default Branch: main
- Last Pushed: 2024-10-27T16:39:10.000Z (over 1 year ago)
- Last Synced: 2024-10-27T19:40:02.042Z (over 1 year ago)
- Topics: devlopment, metapackage, package, pkgdoc, pkgdown, r, reference, vignette, website
- Language: R
- Homepage: https://maurolepore.github.io/pkgdoc/
- Size: 677 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 32
-
Metadata Files:
- Readme: README.Rmd
- License: LICENSE.md
Awesome Lists containing this project
README
---
output: github_document
---
```{r setup, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%"
)
```
# pkgdoc (deprecated)
See https://github.com/maurolepore/dverse
[](https://www.tidyverse.org/lifecycle/#experimental)
[](https://travis-ci.org/maurolepore/pkgdoc)
[](https://coveralls.io/r/maurolepore/pkgdoc?branch=master)
[](https://cran.r-project.org/package=pkgdoc)
Dataframe the documentation of available packages, and reference objects across multiple packages by package or concept. Combined with `krittr::kable()` or `DT::datatable()`, __pkgdoc__ allows you to reference functions by package or concept across multiple packages and to provide links to each topic's help file (similar to the Reference section of a [__pkgdown__](https://pkgdown.r-lib.org/) website but not limited to a single package).
* [Reference and tutorial](https://maurolepore.github.io/pkgdoc/articles/siteonly/reference.html)
* [__pkgdoc__ in action](https://forestgeo.github.io/fgeo/articles/siteonly/reference.html)
## Installation
``` r
# install.packages("devtools")
devtools::install_github("maurolepore/pkgdoc")
```
## Example
```{r}
library(pkgdoc)
```
`search_docs()` creates a dataframe of documentation available to you.
```{r example}
# Documentation of all installed packages
search_docs()
some_packages <- c("utils", "base")
search_docs(some_packages)
```
`reference_package()` and `reference_concept()` allow you to pick specific documentation.
```{r}
reference_package(c("stats", "MASS"))
reference_concept(c("combine strings", "files", "PCA"))
```
Use `knittr::kable()` or `DT::datatable()` for the links to become clickable.
```{r}
library(fgeo)
reference_concept(
c("datasets", "plot functions"),
url = "https://forestgeo.github.io/",
) %>%
arrange(concept) %>%
head() %>%
knitr::kable()
```