Minimal R Package Development Utilities

Lightweight wrappers around 'R CMD INSTALL', 'R CMD check', 'R CMD build', 'win-builder' uploads, and 'CRAN' submission. Provides functions for installing, loading, checking, building, and submitting R packages with minimal dependencies (only 'curl' for uploads). Background on R package development is in Wickham and Bryan (2023, ISBN:9781098134945), "Writing R Extensions" < https://cran.r-project.org/doc/manuals/R-exts.html>, and the 'CRAN' Repository Policy < https://cran.r-project.org/web/packages/policies.html>.


tinypkgr

Minimal R package development utilities - base R + curl.

What it does

tinypkgr provides lightweight wrappers around R CMD INSTALL, R CMD check, and CRAN submission utilities.

Installation

install.packages("tinypkgr")

Usage

For creating a new package skeleton, use pkgKitten:

pkgKitten::kitten("mypkg")

Development

library(tinypkgr)

# Source all R files for interactive development
load_all()

# Install package
install()

# Reinstall and reload
reload()

# Run R CMD check
check()

CRAN Release

# Build tarball
build()

# Test on Windows
check_win_devel()

# Submit to CRAN
submit_cran()

Functions

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

Philosophy

Follows tinyverse principles. Only dependency is curl (for CRAN/win-builder uploads).

License

GPL-3

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("tinypkgr")

0.2.2 by Troy Hernandez, 3 months ago


https://github.com/cornball-ai/tinypkgr


Report a bug at https://github.com/cornball-ai/tinypkgr/issues


Browse source code at https://github.com/cran/tinypkgr


Authors: Troy Hernandez [aut, cre] (ORCID: , cornball.ai [cph]


Documentation:   PDF Manual  


GPL-3 license


Imports curl

Suggests tinyrox, tinytest


See at CRAN