[R] basic sweave question

Yihui Xie xieyihui at gmail.com
Tue Jan 13 05:33:32 CET 2009


"Sweave.sty" is in the directory file.path(R.home(), 'share', 'texmf')

Regards,
Yihui
--
Yihui Xie <xieyihui at gmail.com>
Phone: +86-(0)10-82509086 Fax: +86-(0)10-82509086
Mobile: +86-15810805877
Homepage: http://www.yihui.name
School of Statistics, Room 1037, Mingde Main Building,
Renmin University of China, Beijing, 100872, China



On Tue, Jan 13, 2009 at 11:59 AM,  <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.
>




More information about the R-help mailing list