-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME.Rmd
79 lines (57 loc) · 2.27 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
74
75
76
77
78
79
---
output: github_document
---
[](https://cran.r-project.org/package=thankr)
[](https://ci.appveyor.com/project/dirkschumacher/thankr)
[](https://travis-ci.org/dirkschumacher/thankr)
[](https://codecov.io/github/dirkschumacher/thankr?branch=master)
```{r, echo = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "README-"
)
options(repos = "https://cran.r-project.org")
```
# thankr
> standing on the shoulders of giants
Find out what packages you use and maybe thank the authors :)
## Install
### From CRAN
```{r, eval=FALSE}
install.packages("thankr")
```
### Latest development version
```{r, eval=FALSE}
devtools::install_github("dirkschumacher/thankr")
```
## Usage
```{r}
library(thankr)
```
```{r, eval=FALSE}
# identifies the packages currently loaded in your session
shoulders() # equal to shoulders("session")
```
```{r, eval=FALSE}
# shows all maintainers of your package library
shoulders("library")
```
```{r, eval=FALSE}
# find out about a specific package
# by default it lists all dependencies of that package as well
shoulders("package", "ropenaq", include_dependencies = FALSE)
shoulders("package", "ropenaq")
```
## Only in the development version
Everything here is still work in progress. Any feedback appreciated.
Find out what packages you have already starred on Github. Inspired by the node module [appreciate](https://github.com/musically-ut/appreciate).
```{r}
gh_starred(c("ropenaq", "Rcpp", "dplyr"))
```
If you are developing a package, you can call `appreciate` in your working directory. If there is a `DESCRIPTION` file, it parses it and checks if you have already starred the dependencies on github. The function fails, if the working directory does not contain a `DESCRIPTION` file.
```{r}
thankr::appreciate()
```
## Contributing
If you found a bug or want to propose a feature, feel free to visit the [issues page](https://github.com/dirkschumacher/thankr/issues).