Test

knitr::opts_chunk$set(echo = TRUE)

library("reproducibleRchunks")

options(reproducibleRchunks.hashing = TRUE)

knitr::knit_engines$set(reproducibleR = reproducibleR)

Reproducible Chunks

Define some numbers. Should be reproducible. Test reproducibility by using reproducibleR code chunk.

xyz <- 1:10

Mixing standard and reproducible chunks

We can run standard R code chunks without reproducibility chunks:

test_result <- t.test(c(1,2,3,4),c(3,4,5,6))

and then subject specific results to a reproducibility check in a reproducibleR chunk:

p <- test_result$p.value

Break reproducibility

numbers <- rnorm(5)


Try the reproducibleRchunks package in your browser

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

reproducibleRchunks documentation built on Aug. 8, 2025, 6:38 p.m.