From h.wickham at gmail.com  Thu Sep  5 18:49:51 2013
From: h.wickham at gmail.com (Hadley Wickham)
Date: Thu, 5 Sep 2013 11:49:51 -0500
Subject: [Rd] Comments requested on "changedFiles" function
In-Reply-To: <CABz6aZeM3nv1fievjjvXdQ5p+xcD775d1xqCHNjojWn03Ay9Og@mail.gmail.com>
References: <522773AC.3030609@gmail.com>
	<CABz6aZeM3nv1fievjjvXdQ5p+xcD775d1xqCHNjojWn03Ay9Og@mail.gmail.com>
Message-ID: <CABdHhvF8PnsnGGkY+Ty3SE3zj3ZYu+_o1NiSQ=uCxeUbyuh3ww@mail.gmail.com>

> 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/



[Rd] Comments requested on "changedFiles" function
Hadley Wickham