[R] basic sweave question

markleeds at verizon.net markleeds at verizon.net
Tue Jan 13 05:33:51 CET 2009


  Martin Morgan kindly explained to me off-list that I need to use

R CMD pdflatex mark-example.tex.

That fixed my problem.




On Mon, Jan 12, 2009 at 11:25 PM, markleeds at verizon.net wrote:

> In my original message, I forot to include my Session Info so it is 
> below. I apologize for that.
>
> sessionInfo()
> R version 2.8.0 (2008-10-20)
> i386-redhat-linux-gnu
>
> locale:
>
> 
> LC_CTYPE=en_US.utf8;LC_NUMERIC=C;LC_TIME=en_US.utf8;LC_COLLATE=en_US.utf8;LC_MONETARY=C;LC_MESSAGES=en_US.utf8;LC_PAPER=en_US.utf8;LC_NAME=C;LC_ADDRESS=C;LC_TELEPHONE=C;LC_MEASUREMENT=en_US.utf8;LC_IDENTIFICATION=C
>
>
> On Mon, Jan 12, 2009 at 10:59 PM, markleeds at verizon.net wrote:
>
>> I am trying to learn the basics of Sweave so I read some things and a 
>> friend gave me his Rnw file
>> to play with. I am able to do R CMD Sweave mark-example.Rnw. That 
>> works. But,
>> then when I do latex mark-example.tex, I get the message below. I 
>> looked in the archives
>> and Martin Morgan mentioned something in 2004 in terms of making sure 
>> that latex is
>> looking at where Sweave.sty is but I am unsure of how to do that. In 
>> fact, I don't even know
>> where Sweave.sty is. Thanks for your help.
>>
>> ! LaTeX Error: File `Sweave.sty' not found.
>>
>> the command \usepackage{Sweave} is in my tex file.
>>
>> ______________________________________________
>> R-help at r-project.org mailing list
>> https://stat.ethz.ch/mailman/listinfo/r-help
>> PLEASE do read the posting guide 
>> http://www.R-project.org/posting-guide.html
>> and provide commented, minimal, self-contained, reproducible code.
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide 
> http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.




More information about the R-help mailing list