reproresearchR

reproresearchR is the companion R package for the open educational resource Reproducible Research Using R by Christian Martinez.

The package is designed to support reproducible research workflows in R by providing:

This package is especially useful for students, instructors, and self-learners who want a structured way to practice transparent, organized, and repeatable analysis.

Companion Textbook

This package accompanies:

Martinez (2026), Reproducible Research Using R

https://martinezc1-reproducible-research-using-r.share.connect.posit.cloud/

https://doi.org/10.5281/zenodo.19136755

Installation

Install the development version from GitHub:

# install.packages("remotes")
remotes::install_github("martinezc1/reproresearchR")

What is included?

The package includes:

Included datasets

The package includes teaching datasets used in the textbook, such as: - exam_data - infection_treatments - pizza_prices

Example

library(reproresearchR)

list_chapters()

tmp <- tempdir()
chapter_script(2, "helper", dest = tmp, overwrite = TRUE)

Why this package?

reproresearchR was built to make reproducible research more approachable and more practical. Rather than learning workflows in the abstract, users work directly with datasets, scripts, and examples tied to a full textbook and teaching framework.

The goal is to help learners build habits that support: