> This approach does have the difficulty that users could attempt to compare > snapshots that were taken with different options and that can't be > compared, but that should be an easy error to detect.
FYI I implemented that approach in testthat: https://github.com/hadley/testthat/blob/master/R/watcher.r - it's a bit more general, because it just sits in the background and listens for changes, dispatching to a callback. Hadley -- Chief Scientist, RStudio http://had.co.nz/ ______________________________________________ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel