[R] Problem with Sweave

From: Thomas Adams <Thomas.Adams_at_noaa.gov>
Date: Tue, 15 May 2007 21:22:38 -0400

I am using R 2.5 on a Linux Redhat platform. I can successfully run some example *.Rnw files through Sweave and generate pdf files. When I try my own example file, "test.Rnw":

\title{Test Sweave Example}

\author{Thomas Adams}

In this example we embed parts of the examples from the
\texttt{boxplot} and \texttt{lattice} figures into a \LaTeX{} document

boxplot(dat$MAE ~ dat$BASINID)

I get the following error:

xt4-tir:adams> echo 'Sweave("test.Rnw")' | R --vanilla --quiet  > Sweave("test.Rnw")
Writing to file test.tex
Processing code chunks ...
 1 : echo term verbatim

Error: chunk 1
Error in parse(file, n, text, prompt, srcfile, encoding) :

        syntax error, unexpected $undefined in: "
Execution halted

I really do not know where to begin to decipher the error messages. Any suggestions?


Thomas E Adams
National Weather Service
Ohio River Forecast Center
1901 South State Route 134
Wilmington, OH 45177

EMAIL:	thomas.adams_at_noaa.gov

VOICE:	937-383-0528
FAX:	937-383-0033

R-help_at_stat.math.ethz.ch mailing list
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
Received on Wed 16 May 2007 - 01:29:29 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Wed 16 May 2007 - 02:31:46 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.