minex: Automatically Reduce Failing R Scripts to a Minimal Reproducible Example

Shrinks a failing R script to the smallest subset of statements that still triggers the same error, using the delta debugging algorithm of Zeller and Hildebrandt (2002) <doi:10.1109/32.988498>. Each candidate reduction is evaluated in a separate R process, so dependencies between statements and their side effects are respected. The result is a one-minimal example, in which removing any remaining statement makes the error disappear; this is the form most useful for bug reports and for questions on community forums. A general delta debugging routine and a helper for reducing data frames to the rows that reproduce a failure are also provided.

Version: 0.1.0
Imports: callr
Suggests: knitr, rmarkdown, spelling, testthat (≥ 3.0.0)
Published: 2026-07-16
DOI: 10.32614/CRAN.package.minex (may not be active yet)
Author: Sandeep Bodduluri ORCID iD [aut, cre, cph]
Maintainer: Sandeep Bodduluri <sbodduluri at uabmc.edu>
BugReports: https://github.com/DIGlabUAB/minex/issues
License: MIT + file LICENSE
URL: https://github.com/DIGlabUAB/minex
NeedsCompilation: no
Language: en-US
Materials: README, NEWS
CRAN checks: minex results

Documentation:

Reference manual: minex.html , minex.pdf
Vignettes: Minimizing failing R code with minex (source, R code)

Downloads:

Package source: minex_0.1.0.tar.gz
Windows binaries: r-devel: minex_0.1.0.zip, r-release: not available, r-oldrel: not available
macOS binaries: r-release (arm64): minex_0.1.0.tgz, r-oldrel (arm64): minex_0.1.0.tgz, r-release (x86_64): minex_0.1.0.tgz, r-oldrel (x86_64): minex_0.1.0.tgz

Linking:

Please use the canonical form https://CRAN.R-project.org/package=minex to link to this page.