An embedded and charset-unspecified text was scrubbed... Name: not available URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20090202/7262882c/attachment-0001.pl>
Sweave
5 messages · Kjetil Halvorsen, Cameron Bracken, Duncan Murdoch +1 more
1 day later
Kjetil Halvorsen wrote:
The other problem refered to above comes from this source lines:
bubble(NURE.orig, "ppm", col = c("#00ff0088", "#00ff0088"))
You may have to escape the # character (i.e. put \# instead). I know this must be done for backslashes.
View this message in context: http://www.nabble.com/Sweave-tp21798204p21824498.html Sent from the R help mailing list archive at Nabble.com.
cameron.bracken wrote:
Kjetil Halvorsen wrote:
The other problem refered to above comes from this source lines:
bubble(NURE.orig, "ppm", col = c("#00ff0088", "#00ff0088"))
You may have to escape the # character (i.e. put \# instead). I know this must be done for backslashes.
That shouldn't be a problem in Sweave, and in fact "\#" will give a warning. I missed the start of the thread, but if the problem is about how some editor handles Sweave, then that's a bug in the editor. Duncan Murdoch
On Wed, 4 Feb 2009, Duncan Murdoch wrote:
cameron.bracken wrote:
Kjetil Halvorsen wrote:
The other problem refered to above comes from this source lines:
bubble(NURE.orig, "ppm", col = c("#00ff0088", "#00ff0088"))
You may have to escape the # character (i.e. put \# instead). I know this must be done for backslashes.
That shouldn't be a problem in Sweave, and in fact "\#" will give a warning. I missed the start of the thread, but if the problem is about how some editor handles Sweave, then that's a bug in the editor.
Indeed.
Looking back at the original post:
-----quote----
\begin{figure}
\centering
<<label=fig1,fig=TRUE,echo=TRUE>>=
bubble(NURE.orig, "ppm", col = c("#00ff0088", "#00ff0088"))
@
\caption{Contenido de uranio (ppm)}
-----end quote-----
The user's editor indented the line that would have begun the code chunk
had it not been indented.
"Code chunks start with <<name >>= at the beginning of a line..." - Sweave
manual.
So, the supposed code chunk is treated as LaTeX.
Chuck
Duncan Murdoch
______________________________________________ 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.
Charles C. Berry (858) 534-2098
Dept of Family/Preventive Medicine
E mailto:cberry at tajo.ucsd.edu UC San Diego
http://famprevmed.ucsd.edu/faculty/cberry/ La Jolla, San Diego 92093-0901
An embedded and charset-unspecified text was scrubbed... Name: not available URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20090204/e26ce427/attachment-0001.pl>