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. When no statement can be removed, because the failure is nested inside a function body, reduction continues within the surviving statements. A general delta debugging routine and a helper for reducing data frames to the rows that reproduce a failure are also provided.

Package details

AuthorSandeep Bodduluri [aut, cph] (ORCID: <https://orcid.org/0000-0001-8201-5262>), Sumanth Chandrupatla [aut, cre, cph] (ORCID: <https://orcid.org/0000-0001-9522-4020>)
MaintainerSumanth Chandrupatla <srchandr@uab.edu>
LicenseMIT + file LICENSE
Version0.2.0
URL https://github.com/DIGlabUAB/minex
Package repositoryView on CRAN
Installation Install the latest version of this package by entering the following in R:
install.packages("minex")

Try the minex package in your browser

Any scripts or data that you put into this service are public.

minex documentation built on Aug. 30, 2026, 1:07 a.m.