Quarto version
1] '1.3.154' [
A curated list of awesome tools to assist ๐ฆ development in R programming language.
If you wish to suggest any additional tools, please make a PR or create an issue here.
Please note that the awesome-r-pkgtools
project is released with a Contributor Code of Conduct. By contributing to this project, you agree to abide by its terms.
Tools useful across all stages of package development (some of these are meta-packages and their component packages are also included in respective sections for the sake of completeness), irrespective of whether package is meant to be submitted to CRAN or to Bioconductor.
{pkgkitten}
(useful for creating new packages for R)
{rcompendium}
(to make the creation of R package/research compendium easier)
{skeletor}
(An R Package Skeleton Generator)
{golem}
(framework for building shiny applications)
{leprechaun}
(leaner framework for building shiny applications)
{rhino}
(a framework to build high quality, enterprise-grade Shiny apps at speed)
{pkgverse}
(for package meta-verse)
{metamakr}
(for package meta-verse)
{available}
(to check if a package name is available to use)
{collidr}
(to check for namespace collisions)
{changer}
(to change the name of an existing R package)
{rprojroot}
(accessing files w.r.t. package root directory)
{desc}
(manipulating DESCRIPTION
files)
{withr}
(to manage package side effects by safely and temporarily modifying global states)
{pkgload}
(to simulate the process of installing and loading a package)
{pkgbuild}
(to find tools needed to build packages)
{config}
(to manage environment specific configuration values){pkgcache}
(to cache โCRANโ-like metadata and packages){roxygen2}
(to generate R package documentation from inline R comments)
{Rd2roxygen}
(in case you inherit a project where documentation was not written using {roxygen2}
)
{sinew}
(generate {roxygen2}
skeletons)
{roclang}
(helpers for diffusing content across function documentation)
{Rdpack}
(for inserting references, figures, and evaluated examples in Rd docs)
{roxygen2md}
(to allow Markdown syntax usage in {roxygen2}
documentation)
{rd2markdown}
(to convert .Rd
package documentation files into markdown files)
{rd2list}
(converts Rd docs to a human-readable list)
{pasteAsComment}
(RStudio addin for pasting copied code as roxygen comment)
roxygen2Comment
(Rstudio addin for adding and remove {roxygen2}
comment)
{katex}
(to convert latex math expressions to HTML for use in package manual pages)
{mathjaxr}
(provides โMathJaxโ and macros to enable its use within Rd
files for rendering equations in the HTML help files)
{mathml}
(translates R expressions to โMathMLโ or โMathJaxโ so that they can be rendered in HTML manual and Shiny apps)
{knitr}
(a general-purpose tool for dynamic report generation to be used as a vignette builder for R package vignettes)
{rmarkdown}
(to convert R Markdown documents to a variety of formats)
{quarto}
(provides R interface to frequently used operations in the Quarto CLI)
{prettydoc}
(creates lightweight yet pretty vignettes)
{learnr}
(to turn any R Markdown document into an interactive tutorial)
{potools}
(for translating messages and checking the โhealthโ of the messaging corpus){lifecycle}
(to manage the life cycle of exported functions){badger}
(query information and generate badges for using in README
and GitHub Pages
)
{hexSticker}
(helper functions for creating reproducible hexagon sticker purely in R)
{hexFinder}
(to scavenge the web for possible hex logos for packages)
hexwall
(to create a wall of hexstickers)
{xaringan}
(an RMarkdown output format for remark.js
slides){bookdown}
(authoring framework for books and technical documents with R Markdown){fledge}
(to streamline the process of updating change logs and versioning R packages developed in git repositories)
{newsmd}
(utilities to add updates to the NEWS.md
file)
{autonewsmd}
(to auto-generate change log using conventional commits)
{docreview}
(to check quality of docs)
{spelling}
(to check for spelling mistakes)
{gramr}
(for grammar suggestions)
{testthat}
(a testing framework for R that is easy to learn and use; also provides snapshot testing)
{patrick}
(for parameterized unit testing with {testthat}
)
{tinytest}
(zero-dependency unit testing framework that installs tests with the package)
{RUnit}
(a standard Unit Testing framework, with additional code inspection and report generation tools)
{testit}
(a simple package for testing R packages)
{realtest}
(a framework unit testing that distinguishes between expected, acceptable, current, fallback, ideal, or regressive behaviours)
{roxytest}
(inline {testthat}
tests with {roxygen2}
)
{roxut}
(to write the unit tests in the same file as the function)
{exampletestr}
(tests based on package examples)
{unitizer}
(simplifies regression tests by comparing objects produced by test code with earlier versions of those same objects)
{r-hedgehog}
(property based testing)
{autotest}
(automatic mutation testing of R packages)
{shinytest}
(testing Shiny apps)
{shinytest2}
(testing Shiny apps using a headless Chromium web browser)
{shinyloadtest}
(to load test deployed Shiny apps)
{httptest}
(a test environment for HTTP requests in R)
{httptest2}
(the same for {httr2}
package)
{webfakes}
(provides fake web apps for HTTP testing R packages)
{dittodb}
(makes testing against databases easy)
{mockthat}
(provides a way to mock package function for unit testing, while coping with S3
dispatch)
{mockr}
(provides a way to mock package function for unit testing)
{mockery}
(provides a way to mock package function for unit testing and can be used with any testing framework)
{testthis}
(RStudio addins for working with files that contain tests)
{xpectr}
(builds unit tests with the {testthat}
package by providing tools for generating expectations)
{testdown}
(turn {testthat}
results into a {bookdown}
project)
{styler}
(to format code according to a style guide)
{stylermd}
(to format text in Markdown documents)
{formatR}
(to format R source code)
{RFormatter}
(extension of {formatR}
with slightly improved heuristics)
{grkstyle}
(extension package for {styler}
that supports authorโs personal code style preferences)
{codegrip}
(addin for RStudio IDE to reshape R code and navigate across syntactic constructs)
{BiocStyle}
(provides standard formatting styles for Bioconductor PDF and HTML documents)
AlignAssign
(RStudio addin that aligns the assignment operators within a highlighted area)
{snakecase}
(helpful for having consistent case while naming objects in the package)
{dotInternals}
(to distinguish non-exported package functions by prepending their names with a dot)
{codetools}
(code analysis tools for R)
{goodpractice}
(Swiss army knife for good practices)
{inteRgrate}
(provides an opinionated set of rules for R package development)
{pkgcheck}
(checks if package follows good practices recommended for packages in the rOpenSci
ecosystem)
{pkgstats} (a static code analysis tool)
{rchk}
(provides several bug-finding tools that look for memory protection errors in C source code using R API)
{sourcetools}
(tools for reading, tokenizing, and parsing R code)
{precommit}
(git hooks for common tasks like formatting files, spell checking, etc.)
{covr}
(to compute code coverage)
{covrpage}
(to include summary README
of code coverage and more detailed information about tests)
{covtracer}
(provides tools for contextualizing tests)
{lintr}
(static code analysis)
{CodeDepends}
(analysis of R code for reproducible research and code view)
{adaptalint}
(infer code style from one package and use it to check another)
{roger}
(provides tools for grading the coding style and documentation of R scripts)
{cleanr}
(tests code for some of the most common code layout flaws)
{cyclocomp}
(to index the complexity of a function){memtools}
(to solve memory leaks)
{cppcheckR}
(to check C
and C++
code using Cppcheck
)
{cloc}
(counts blank lines, comment lines, and physical lines of source code in source files){refactor}
(to check speed and performance of both the original and refactored version of code){bench}
(provides high precision benchmarks for R expressions)
{microbenchmark}
(provides infrastructure to accurately measure and compare the execution time of R expressions)
{tictoc}
(provides functions for timing R scripts)
{touchstone}
(benchmarking pull requests)
{profvis}
(to profile and visualize profiling data)
{proffer}
(to create friendlier, faster visualizations for profiling data)
{jointprof}
(to profile packages with native code in C, C++, Fortran, etc.)
{pkgdepends}
(to find recursive dependencies of from various sources)
{deepdep}
(to visualize and explore package dependencies)
{itdepends}
(to assess usage, measure weights, visualize proportions, and assist removal of dependencies)
{DependenciesGraphs}
(to visualize package dependencies)
{DependencyReviewer}
(to investigate packages during code review by looking at their dependencies)
{pkgnet}
(to build a graph representation of a package and its dependencies)
{functiondepends}
(to find functions in an unstructured directory and explore their dependencies)
{pkgndep}
(checks the heaviness of the packages used)
{oysteR}
(to secure package against insecure dependencies)
{attachment}
(to deal with package dependencies during package development)
{rcmdcheck}
(to run R CMD check
form R programmatically)
{BiocCheck}
(to run Bioconductor-specific package checks)
{rhub}
(to run R CMD check
on CRAN architectures)
{checkhelper}
(to help avoid problems with CRAN submissions)
{foghorn}
(to check for results and submission portal status)
{urlchecker}
(to checks for URL rot)
{cranlogs}
(for computing CRAN download counts)
{packageRank}
(for visualizing CRAN download counts)
{dlstats}
(provides download statistics for packages)
CI/CD: continuous integration and either continuous delivery or continuous deployment
actions
(provides GitHub Actions relevant for R)
actions-sync
(to manage GitHub Actions workflows across repositories)
rworkflows
(GitHub Actions to automates testing, documentation website building, and containerised deployment.)
r-appveyor
(for AppVeyor)
{tic}
(for Circle CI and GitHub Actions)
{jenkins}
(for Jenkins CI)
{cronR}
(to schedule R scripts/processes with the cron scheduler)
{fakemake}
(to mock Unix Make build system in case it is unavailable){valtools}
(in clinical research and drug development){debugme}
(provides helpers to specify debug messages as special string constants, and control debugging of packages via environment variables)
{debugr}
(tools to print out the value of R objects/expressions while running an R script)
{winch}
(provides stack traces for call chains that cross between R and C/C++ function calls)
{flow}
(to visualize as flow diagrams the logic of functions, expressions, or scripts, which can ease debugging)
{boomer}
(provides debugging tools to inspect the intermediate steps of a call)
{checkmate}
(fast and versatile argument checks)
{assertthat}
(to declare the pre and post conditions that you code should satisfy and to produce friendly error messages)
{assertive}
(provides readable check functions to ensure code integrity)
{pkgcond}
(better error messages for package users)
{dreamerr}
(a simple and intuitive, yet powerful and flexible, way to check the arguments passed to a function and to offer informative error messages)
{erify}
(to check arguments and generate readable error messages)
{validate}
(to check whether data lives up to expectations based on the domain-specific knowledge)
{codemetar}
(provides utilities to generate, parse, and modify codemeta.jsonld
files automatically for R packages), or {codemeta}
(a leaner version of {codemetar}
)
{cffr}
(provides utilities to generate, parse, modify and validate CITATION.cff
files automatically for R packages)
{citation}
(creates CITATION.cff
from R package metadata)
{pkgapi}
(to create the map of function calls in a package)
{packagemetrics}
(for comparing among packages)
{devtoolbox}
(to create a summary report for R package and to extract dependency statistics in a tidy data frame)
{pkgattrs}
(useful for getting information on the contents of any R package)
{foreman}
(for unpacking, interrogating and subsetting R packages)
{sessioninfo}
(to include R session information)
{revdepcheck}
(for automated, isolated, reverse dependency checking)
{xfun}
(specifically, xfun::rev_check()
)
To thank the contributors or maintainers of packages you rely on.
{thankr}
(to find out who maintains the packages you are using)
{allcontributors}
(to help acknowledge all contributions)
{containerit}
(to package R script/session/workspace and all dependencies as a Docker
container by generating a suitable Dockerfile
)
{usethat}
(to automate analytic project setup tasks)
{TODOr}
(RStudio addin to list things that you need to do or change){gpttools}
(RStudio addin that allows using chatGPT to automate writing documentation, tests, etc.)
{prefixer}
(prefix function with their namespace )
{rstudioapi}
(to conditionally access the RStudio API from CRAN packages)
{rcheology}
(to access data on base packages for previous versions of R)
{gitignore}
(to fetch gitignore templates)
{DIZutils}
(helpers for packages dealing with database connections)
1] '1.3.154' [
โ Session info โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
setting value4.2.2 (2022-10-31)
version R version 22.04.1 LTS
os Ubuntu -gnu
system x86_64, linux
ui X11language (EN)
-8
collate C.UTF-8
ctype C.UTF
tz UTC2023-02-05
date 2.19.2 @ /usr/bin/ (via rmarkdown)
pandoc
โ Packages โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ* version date (UTC) lib source
package 3.6.0 2023-01-09 [1] RSPM
cli 0.8.0 2022-02-22 [1] RSPM
clipr 1.4.2 2022-09-08 [1] RSPM
desc * 0.3.0 2022-03-27 [1] RSPM
details 0.6.31 2022-12-11 [1] RSPM
digest 0.20 2023-01-17 [1] RSPM
evaluate 1.1.0 2021-01-25 [1] RSPM
fastmap 0.5.4 2022-12-07 [1] RSPM
htmltools 1.4.4 2022-08-17 [1] RSPM
httr 1.8.4 2022-12-06 [1] RSPM
jsonlite 1.42 2023-01-25 [1] RSPM
knitr 1.3.0 2021-08-18 [1] RSPM
later 2.0.3 2022-03-30 [1] RSPM
magrittr 0.1-8 2022-11-29 [1] RSPM
png 3.8.0 2022-10-26 [1] RSPM
processx 1.7.2 2022-10-26 [1] RSPM
ps 1.2.0.9000 2023-01-15 [1] Github (quarto-dev/quarto-r@19aaccc)
quarto 2.5.1 2021-08-19 [1] RSPM
R6 1.0.10 2023-01-22 [1] RSPM
Rcpp 1.0.6 2022-09-24 [1] RSPM
rlang 2.20 2023-01-19 [1] RSPM
rmarkdown 2.0.3 2022-04-02 [1] RSPM
rprojroot 0.14 2022-08-22 [1] RSPM
rstudioapi 1.2.2 2021-12-06 [1] any (@1.2.2)
sessioninfo 2.5.0 2022-03-03 [1] RSPM
withr 0.37 2023-01-31 [1] RSPM
xfun 1.3.3 2021-11-30 [1] RSPM
xml2 2.3.7 2023-01-23 [1] RSPM
yaml
1] /home/runner/work/_temp/Library
[2] /opt/R/4.2.2/lib/R/site-library
[3] /opt/R/4.2.2/lib/R/library
[
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ