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
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()
:
pkgdev::create_pkg("myawesomepkg", pkgdevt_script = TRUE, github = TRUE)
This will perform the following steps:
- Create a new directory called
myawesomepkg
- Initialize an RStudio project,
myawesomepkg.Rproj
, within that directory
Jimmy Briggs | jimmy.briggs@jimbrig.com | 2022