Conditional Backgrounds
Andreas Brandmaier
2026-10-22
Source:vignettes/html_styling.Rmd
html_styling.RmdThis document contains the following metaparameters in the YAML header of the Markdown file
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 <- 2Code Chunk Reproduction Report
✅a: REPRODUCTION SUCCESSFUL
✅b: REPRODUCTION SUCCESSFUL
The next code block is set up to fail:
Code Chunk Reproduction Report
❌.Random.seed: REPRODUCTION FAILED Fingerprints are not identical.
❌rnd: REPRODUCTION FAILED Fingerprints are not identical.
❌today: REPRODUCTION FAILED Fingerprints are not identical.