This repository has been archived by the owner on Nov 3, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
README.Rmd
74 lines (53 loc) · 2.23 KB
/
README.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
---
output: github_document
---
<!-- README.md is generated from README.Rmd. Please edit that file -->
```{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
[![lifecycle](https://img.shields.io/badge/lifecycle-experimental-orange.svg)](https://www.tidyverse.org/lifecycle/#experimental)
[![Travis build status](https://travis-ci.org/maurolepore/pkgdoc.svg?branch=master)](https://travis-ci.org/maurolepore/pkgdoc)
[![Coverage status](https://coveralls.io/repos/github/maurolepore/pkgdoc/badge.svg)](https://coveralls.io/r/maurolepore/pkgdoc?branch=master)
[![CRAN status](https://www.r-pkg.org/badges/version/pkgdoc)](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()
```