From: ripley@stats.ox.ac.uk
Date: Tue 17 Dec 2002 - 02:19:03 EST
Message-id: <Pine.LNX.4.31.0212161516310.14708-100000@gannet.stats>
On Mon, 16 Dec 2002, Edzer J. Pebesma wrote:
> I would like to use the %% operator in the \example{} section of a R
> documentation
> file, but it leads to errors when this is processed.
>
> How should I do this?
Read the manual, `Writing R Extensions' in this case:
The ``comment'' and ``control'' characters @samp{%} and @samp{\}
@emph{always} need to be escaped. Inside the verbatim-like commands
(@code{\code} and @code{\examples}), no other characters are special
so it's \%\% you need to write.
-- Brian D. Ripley, ripley@stats.ox.ac.uk Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/ University of Oxford, Tel: +44 1865 272861 (self) 1 South Parks Road, +44 1865 272860 (secr) Oxford OX1 3TG, UK Fax: +44 1865 272595______________________________________________ R-help@stat.math.ethz.ch mailing list http://www.stat.math.ethz.ch/mailman/listinfo/r-help
This archive was generated by hypermail 2.1.3 : Tue 01 Jun 2004 - 09:31:57 EST