Frage

Wenn Sweave von emacs-ess ausgeführt werden Fehler mit einem Code Chunk Nummer versehen. Gibt es eine einfache Möglichkeit, unter dem Code Brocken nach Nummer zu navigieren? Ansonsten sind sie schwer zu identifizieren.

War es hilfreich?

Lösung

I don't use emacs-ess (I use Eclipse/ StatEt) but this shows which code chunks are being processed by label (each code chunk starts with <<label="Some Text"... Does your code chunks include labels ?

Andere Tipps

In noweb mode in emacs M-n i inserts the chunk and asks for the label. You can navigate between them with M-n g which is very handy with completion packages like ido or icicles. With ido you must use this hack to activate it for all completion-read based functions such as noweb-goto-chunk from above.

Another thing that might help is setting options(error=recover) in your R environment before sweaving. That will give you a chance to investigate the state of things just before an error is thrown.

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top