The purpose of this package is to provide a way of visualizing code changes
between steps. The idea came from the difficulty in tracking what components of a
complex ggplot correspond to various settings. The functions in this package
provide the underlying infrastructure to diff between 'steps' to visualize
what things are changed similar to git diff
.
The way the package works is to add an extra macro to Rmd document to declare what code chunks correspond to steps you want to visualize.
### Step 1 - <some description>
@start step1
``.`{r }
<some code>
``.`
@end step1
### Step 2 - <some description>
@start step2
``.`{r }
<some code> with some additional changes
@end step2
`.
(dots in the rmd code chunks to fix rendering on github, but should not be present in real Rmd)
Example of interatively building a histogram
![diff ex 1](assets/diff-ex1.png)