-
Notifications
You must be signed in to change notification settings - Fork 1
/
README.Rmd
48 lines (36 loc) · 1.03 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
---
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%"
)
```
# pkghelper
<!-- badges: start -->
[![Lifecycle: maturing](https://img.shields.io/badge/lifecycle-maturing-blue.svg)](https://www.tidyverse.org/lifecycle/#maturing)
<!-- badges: end -->
## Installation
You can install the package from Github with
``` r
devtools::install_github("markusdumke/pkghelper")
```
## Usage
Currently the package includes functions which scan the R code in the package
for all packages in use and writes these packages to the Imports field of the
DESCRIPTION file.
Together with `devtools` and `roxygen2` this package helps to make the R package
generation process more automatically.
```{r, eval = TRUE}
library(pkghelper)
# Get names of packages my package depends on
get_dependencies()
```
```{r, eval = TRUE}
# Modify DESCRIPTION
write_dependencies()
```