Minimal R package development utilities - base R + curl.
tinypkgr provides lightweight wrappers around R CMD INSTALL, R CMD check, and CRAN submission utilities.
remotes::install_github("cornball-ai/tinypkgr")
For creating a new package skeleton, use pkgKitten:
pkgKitten::kitten("mypkg")
library(tinypkgr)
# Source all R files for interactive development
load_all()
# Install package
install()
# Reinstall and reload
reload()
# Run R CMD check
check()
# Build tarball
build()
# Test on Windows
check_win_devel()
# Submit to CRAN
submit_cran()
| Function | Purpose |
|----------|---------|
| use_version() | Bump DESCRIPTION version + NEWS.md header |
| use_github_action() | Write .github/workflows/ci.yaml (r-ci) |
| install() | R CMD INSTALL wrapper |
| load_all() | Source R/ files for dev |
| reload() | Reinstall and reload |
| check() | R CMD check wrapper |
| build() | R CMD build wrapper |
| maintainer() | Extract maintainer from DESCRIPTION |
| check_win_devel() | Upload to win-builder |
| submit_cran() | Submit to CRAN |
Follows tinyverse principles. Only dependency is curl (for CRAN/win-builder uploads).
GPL-3
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.