Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/jimbrig/pkgdev

Suite of Helpers for the R Package Developer
https://github.com/jimbrig/pkgdev

r r-package r-package-development r-stats tools utility workflow

Last synced: 3 months ago
JSON representation

Suite of Helpers for the R Package Developer

Awesome Lists containing this project

README

        

---
output: github_document
---

```{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`

[![Codecov test coverage](https://codecov.io/gh/jimbrig/pkgdev/branch/main/graph/badge.svg)](https://app.codecov.io/gh/jimbrig/pkgdev?branch=main)
[![Lifecycle: experimental](https://img.shields.io/badge/lifecycle-experimental-orange.svg)](https://lifecycle.r-lib.org/articles/stages.html#experimental)

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 | | 2022