Conditional Backgrounds

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

  • ✅a: REPRODUCTION SUCCESSFUL

  • ✅b: REPRODUCTION SUCCESSFUL



The next code block is set up to fail:

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

Reproducibility Checks

  • ❌.Random.seed: REPRODUCTION FAILED Fingerprints are not identical.

  • ❌rnd: REPRODUCTION FAILED Fingerprints are not identical.

  • ❌today: REPRODUCTION FAILED Fingerprints are not identical.