> I think codetools could do this reasonably well with the walkCode function, > but I've never done it so I don't have sample code, and walkCode is mostly > an internal function. There are a couple of approaches here: http://stackoverflow.com/questions/14276728/ Hadley -- Chief Scientist, RStudio http://had.co.nz/