-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME.Rmd
64 lines (43 loc) · 1.78 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
---
output: github_document
---
<!-- README.md is generated from README.Rmd. Please edit that file -->
```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%",
message = FALSE,
warning = FALSE
)
```
# R Package Developer's Toolkit - `pkgdev`
<!-- badges: start -->
[](https://app.codecov.io/gh/jimbrig/pkgdev?branch=main)
[](https://lifecycle.r-lib.org/articles/stages.html#experimental)
<!-- badges: end -->
The goal of `pkgdev` is to provide the R Package Developer a suite of tools to
simplify and aid the various processes involved with creating, developing,
testing, maintaining, and overall management of their R Packages.
## Installation
You can install the development version of `pkgdev` with `pak` like so: [^1]
```r
pak::pak("jimbrig/pkgdev")
```
## Usage
`pkgdev` comes with many tools out-of-the-box for package developer's in R to quickly
get started:
### Create a new package
To create a new R package locally, run `pkgdev::create_pkg()`:
```R
pkgdev::create_pkg("myawesomepkg", pkgdevt_script = TRUE, github = TRUE)
```
This will perform the following steps:
1. Create a new directory called `myawesomepkg`
2. Initialize an RStudio project, `myawesomepkg.Rproj`, within that directory
3.
***
[^1]: Similarly, you can install the package using the more common `devtools::install_github()` and `remotes::install_github()`. If you need to install `pak`, install the development version using `install.packages("pak", repos = "https://r-lib.github.io/p/pak/devel/")`.
***
Jimmy Briggs | <jimmy.briggs@jimbrig.com> | 2022