[ESS] ess-swv-PDF hack(?)

Kasper Daniel Hansen khansen at stat.berkeley.edu
Thu Mar 19 05:52:53 CET 2009


This really has nothing to do with ESS, it is a design choice in R/ 
Sweave. I suggest complaining to R-devel where you will have little  
success. There were some good reasons for the change, I forgot which.  
See old threads in the r-devel list.

Kasper


On Mar 18, 2009, at 11:12 , David Stivers wrote:

> So does this work out of the box on Windows platforms now? Or is it  
> broken
> on both?
>
> Now either I have to research how to update my tex path, or I have  
> to add
> Sys.setenv("SWEAVE_STYLEPATH_DEFAULT" = "TRUE") to my .Rprofile,  
> correct?
>
> Is it fair to say that if I have to hack something that didn't  
> previously
> require hacking means that it is now broken?
>
> Sorry for the rant, I know you guys put a lot of effort into ess,  
> which I
> appreciate, it's just that I've wasted way way too much time trying to
> figure out how to fix this issue.
>
> David S.
>
> xemacs 21.5 beta28, opensuse 11.1, R 2.8.0, ess-5.3.10
>
> On Mon, Nov 17, 2008 at 4:13 AM, Martin Maechler <maechler at stat.math.ethz.ch
>> wrote:
>
>>>>>>> "ChuckB" == Charles C Berry <cberry at tajo.ucsd.edu>
>>>>>>>    on Sat, 15 Nov 2008 14:25:35 -0800 writes:
>>
>>   ChuckB> Dear Ess-weaveRs,
>>
>>   ChuckB> Lately I been getting complaints about Sweave.sty not being
>> found by
>>   ChuckB> pdflatex.
>>
>>   ChuckB> I guess that utils:::texi2dvi or R CMD texi2dvi are
>>   ChuckB> intended to resolve this for me, and in command line
>>   ChuckB> operations, I am now in the habit of typing
>>
>>   ChuckB> R CMD texi2dvi -p myfile.tex
>>
>>   ChuckB> which helpfully sets TEXINPUTS (I assume) and runs
>>   ChuckB> pdflatex as many times as needed to resolve
>>   ChuckB> references.
>>
>>   ChuckB> To get the equivalent in ess-swv-PDF, I am using this
>>
>>   ChuckB> ;; old version (call-process "pdflatex" nil tex-buf 1
>> latex-filename))
>>
>>   ChuckB> (call-process "R" nil tex-buf 1 "CMD" "texi2dvi" "-p"
>> latex-filename ))
>>
>>   ChuckB> This seems to do the trick for me - M-n P pdflatex's
>>   ChuckB> the file and pops up my viewer, but I wonder if there  
>> might be
>>   ChuckB>  some gotchas and/or if there is a better version of this.
>>
>> Thank you, Chuck.
>> I don't see why your solution should be called "hack".
>>
>> To the contrary, I find it quite reasonable to rely on
>>
>>  R CMD texi2dvi -p <filename>
>>
>> to work properly even in those cases where direct
>>
>>  pdflatex -p <filename>
>>
>> would not work.
>> I do agree with Sebastian that putting Sweave.sty into the
>> "TEXINPUTS / texmf path" is a more generally useful solution
>> {which we have been using locally "forever"}.
>>
>> The more important question for this mailing list (!) remains what
>> we -- ESS-core -- should do about this :
>> Should we replace the above  (call-process ..) line the same or
>> similarly as Chuck did it?
>>
>>
>> Martin Maechler, ETH Zurich
>>
>> ______________________________________________
>> ESS-help at stat.math.ethz.ch mailing list
>> https://stat.ethz.ch/mailman/listinfo/ess-help
>>
>
> 	[[alternative HTML version deleted]]
>
> ______________________________________________
> ESS-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/ess-help




More information about the ESS-help mailing list