Conditional Backgrounds

Andreas Brandmaier

2026-10-22

This document contains the following metaparameters in the YAML header of the Markdown file

reproducibleR:
  conditional_backgroundcolor: true

This turns on dynamic coloring of code blocks that do not reproduce. In the following code blocks with failures to reproduce get a light red background color.

library(reproducibleRchunks)

The following code is set up to reproduce fine:

a <- 1
b <- 2

Reproducibility Checks



The next code block is set up to fail:

today <- date()
rnd <- rnorm(1)

Reproducibility Checks