ess-help:
Still can’t figure out to get this to work with ESS, but I’ve got it now for
AUCTeX.
Well, at least, for v11.88. You need this definition…
(eval-after-load "tex"
'(add-to-list 'TeX-command-list
'("SweavePDF" "R CMD Sweave --pdf %s.Rnw"
TeX-run-command t t
Hi Kasper:
I was trying to avoid adding jss.cls to texmf on every single machine that
I use, which are several, since R already has it anyways. It would be great
if ESS’ AUCTeX support did the right thing out of the box. Of course, you can
tell AUCTeX how to compile Rnw with Sweave…
To me, I would suspect a path issue. How does tex find the cls file?
Possibilities: (1) it is in the same directory as the tex file (2) you have
installed it into the texmf tree and updated the tex search path to find it
(3) you have put it somewhere (perhaps in the texmf tree) and uses
Hi Stephen:
1. No. Typo it is actually jss.cls. But, it is not just jss.cls,
there are other packages that come with R but not TeX Live
like thumbpdf and lmodern.
2. Yes, I’m talking about knitr. R CMD Sweave is ambidextrous.
Thanks,
Rodney
-Original Message-
From: Stephen Eglen