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.
You can install the development version of pkgdev with pak like so:
1
pak::pak("jimbrig/pkgdev")pkgdev comes with many tools out-of-the-box for package developer’s in
R to quickly get started:
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
Footnotes
-
Similarly, you can install the package using the more common
devtools::install_github()andremotes::install_github(). If you need to installpak, install the development version usinginstall.packages("pak", repos = "https://r-lib.github.io/p/pak/devel/"). ↩