[ESS] Sweave with ESS and AUCTeX

Sparapani, Rodney r@p@r@p@ @end|ng |rom mcw@edu
Fri Jan 19 17:34:54 CET 2018


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…

(eval-after-load "tex"
  '(add-to-list 'TeX-command-list
                        '("Sweave" "R CMD Sweave %s" TeX-run-command t t :help "Sweave") t))

(eval-after-load "tex"
  '(add-to-list 'TeX-command-list
                        '("SweavePDF" "R CMD Sweave --pdf %s" TeX-run-command t t :help "SweavePDF") t))

But, then viewing doesn’t work, because it looks for computing.Rnw.pdf instead of
computing.pdf.  So, I think the best way forward is to make ESS’ setting
ess-swv-plug-into-AUCTeX-p work with AUCTeX (I’m using v12.1).  Not sure how to
do that yet.

Thanks,

Rodney

From: Kasper Daniel Hansen <kasperdanielhansen using gmail.com>
Date: Friday, January 19, 2018 at 7:59 AM
To: Rodney Sparapani <rsparapa using mcw.edu>
Cc: Stephen Eglen <sje30 using cam.ac.uk>, ess-help <ess-help using r-project.org>
Subject: Re: [ESS] Sweave with ESS and AUCTeX

ATTENTION: This email originated from a sender outside of MCW. Use caution when clicking on links or opening attachments.
________________________________
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 enviroment variables to tell tex its location.

If it is (1) I would be a bit confused because I think (I may be wrong) that tex automatically searches for cls/sty files in the same directory as the tex file.

Best,
Kasper

On Fri, Jan 19, 2018 at 8:56 AM, Sparapani, Rodney <rsparapa using mcw.edu<mailto:rsparapa using mcw.edu>> wrote:
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 <sje30 using maths.cam.ac.uk<mailto:sje30 using maths.cam.ac.uk>> on behalf of Stephen Eglen <sje30 using cam.ac.uk<mailto:sje30 using cam.ac.uk>>
Date: Friday, January 19, 2018 at 3:13 AM
To: Rodney Sparapani <rsparapa using mcw.edu<mailto:rsparapa using mcw.edu>>
Subject: Re: [ESS] Sweave with ESS and AUCTeX

    1. is jss.sty in the same folder as your computing.Rnw

    2. surely JSS should adopt knitr rather than Sweave?

    S

______________________________________________
ESS-help using r-project.org<mailto:ESS-help using r-project.org> mailing list
https://stat.ethz.ch/mailman/listinfo/ess-help<https://urldefense.proofpoint.com/v2/url?u=https-3A__stat.ethz.ch_mailman_listinfo_ess-2Dhelp&d=DwMFaQ&c=aFamLAsxMIDYjNglYHTMV0iqFn3z4pVFYPQkjgspw4Y&r=2M6XAlqJdq-Ryc3EDyECCw&m=X1hgSpV-2q4Irsl5qO2GEYrN413H3EVFfYze8frbZmQ&s=FpISU86hhcj3jpdoM84cDQFDgKIcEw6K8r7_Uncuxmw&e=>



More information about the ESS-help mailing list