Emacs: AucTeX + Rubber + Sweave

Posted by & filed under Emacs, ESS, LaTeX, R.

I got rubber to work with AucTeX and Sweave (Rnw) files with the help of this. Basically, combined with my other stuff, I tweaked my .emacs file to look like: ;;following is AucTeX with Sweave — works ;;http://andreas.kiermeier.googlepages.com/essmaterials (setq TeX-file-extensions ‘(“Snw” “Rnw” “nw” “tex” “sty” “cls” “ltx” “texi” “texinfo”)) (add-to-list ‘auto-mode-alist ‘(“\\.Rnw\\’” . Rnw-mode)) (add-to-list… Read more »

sweave.sh

Posted by & filed under Emacs, ESS, LaTeX, Linux, R.

Now that I’ve been blogging about Sweave, I forgot to mention sweave.sh from Gregor Gorjanc which is a bash script executing R CMD Sweave with many options, such as cacheSweave. The most up to date version can be found here.

Editing/adding on to Sweave features in ESS

Posted by & filed under ESS, R.

I really like David Whiting’s Sweave methods in ESS: M-n s M-n P and I get a compiled pdf file. However, i wanted to change it so Sweave uses the cacheSweaveDriver() when sweaving. I knew the the functions were defined in the ess-swv.el file (in my carbon emacs in Mac OS X, it is at… Read more »

AucTeX with Sweave

Posted by & filed under ESS, LaTeX, R.

I got sweave shortcuts to work in emacs with ESS before (David Whiting’s method; see the ess-swv.el file in your emacs lisp ESS folder). Just found a way to get Sweave working with AucTeX: http://andreas.kiermeier.googlepages.com/essmaterials C-c C-c Sweave Then Latex like usual!