[R] Apparent conflict between \Sexpr in Sweave and R2HTML
Friedrich.Leisch@tuwien.ac.at
Friedrich.Leisch at tuwien.ac.at
Tue Jul 6 10:11:19 CEST 2004
>>>>> On Mon, 05 Jul 2004 09:08:38 -0700,
>>>>> Scott Waichler (SW) wrote:
> I have come across an apparent bug in the operation of Sweave. If I
> load the package R2HTML then execution of \Sexpr{} in an *.Rnw file no
> longer works. The \Sexpr{} code is simply written to the *.tex file.
> Below are my *.Rnw file, commands, and output.
R2HTML registers another Sweave driver for HTML files, and after that
the Syntax for HTML is in the search list before the default syntax.
options(SweaveSyntax="SweaveSyntaxNoweb")
or calling Sweave like
Sweave(..., syntax="SweaveSyntaxNoweb")
should do the trick. I'll add this to the Sweave FAQ.
Best,
Fritz
More information about the R-help
mailing list