[Rd] Working with Sweave: inverse search?

From: Duncan Murdoch <murdoch_at_stats.uwo.ca>
Date: Sat 13 Jan 2007 - 20:58:31 GMT


The xdvi and yap DVI viewers allow inverse (aka reverse) search: you click on a location in the output display, and your editor moves to the corresponding location in the input file. yap at least also allows forward search, where you can have your editor tell it to location where a particular input line is displayed.

I would like something like this to work in Sweave files. That is, I write an Sweave file and process it through to a .dvi in the previewer, then I click in a previewer and am taken to the original location in the Sweave file.

There seem to be two obstacles: The latex I'm using (from MikTeX) doesn't give any way to indicate the original source file when the .tex comes out of Sweave, and Sweave doesn't keep track of the concordance between input lines and output lines.

Both of these are fixable, but it looks like a few hours work; has anyone done this already?

Duncan Murdoch



R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel Received on Sun Jan 14 08:02:12 2007

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Sun 14 Jan 2007 - 19:32:43 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-devel. Please read the posting guide before posting to the list.