develcoder is an R package containing
code and templates to develop R packages. It is based on the book
R packages by Hadley Wickham and Jennifer
Bryan, using R packages
devtools and
usethis. I use
tinytest instead of
testthat for unit
tests.
Folder vignettes contains the following vignettes:
package setupvignette("pkg_setup", package = "develcoder")contains code that is needed only once to set up a package from scratch.package developmentvignette("pkg_devel", package = "develcoder")contains code that is useful during package development, including when preparing to release a new package version and setting up for a new version.R Markdown and knitrvignette("rmarkdown_knitr", package = "develcoder")contains information about usingR Markdownandknitr.
Folder
inst/templates
contains the following templates (in the installed package these are in
develcoder/templates):
README_template.Rmdfor aREADME.Rmdfile, to be put in the top-directory of<pkg>.check-no-suggests.yamlfor a GitHub Actions workflow checking if the package code can be run if the suggested packages are not installedcheck-standard.yamlfor a GitHub Actions workflowpkgdown.yamlfor a GitHub Actions workflow to update the package website
To use these files, put the README.Rmd file in the top-directory of
<pkg>. The yaml files should be put in <pkg>\.github\workflows
(see the section Automate checks in the vignette package
setup
and the section Use GitHub Actions in the vignette package
development
for details).
Visit the develcoder
website to explore the
package, or install develcoder from
GitHub using the
following R code (you need to run R as administrator):
if(!requireNamespace("remotes", quietly = TRUE)) {
install.packages(pkgs = "remotes", quiet = FALSE)
}
remotes::install_github(repo = "JesseAlderliesten/develcoder",
dependencies = NA, upgrade = FALSE, force = FALSE,
quiet = FALSE, build_vignettes = TRUE, lib = NULL,
verbose = getOption("verbose"))For more information about installing and configuring R and RStudio, see
my package
checkrpkgs.
This project is licensed under the terms of the MIT License.
To cite package 'develcoder' in publications use:
Alderliesten J (2026). _develcoder: Code and Templates to Develop R
Packages_. R package version 0.9.0,
<https://github.com/JesseAlderliesten/develcoder>.
A BibTeX entry for LaTeX users is
@Manual{,
title = {develcoder: Code and Templates to Develop R Packages},
author = {Jesse Alderliesten},
year = {2026},
note = {R package version 0.9.0},
url = {https://github.com/JesseAlderliesten/develcoder},
}
- The book
R packagesby H. Wickham and J. Bryan - The chapter
Building R PackagesofMastering Software Development in Rby R. D. Peng, S. Kross, and B. Anderson. - Slides from the workshop Building tidy tools by E. Rand and I. Lyttle
- The section
Documentation and helpin thepackage developmentvignette contains further references. - Package
packagepal