[Rd] %*% in examples (PR#855)

Torsten Hothorn Torsten.Hothorn@rzmail.uni-erlangen.de
Mon, 26 Feb 2001 14:06:17 +0100 (MET)


> >From R-exts.texi ca line 1125.
> 
> 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.
> 
> You need \%*\%, as it suggests there and is used in the base package
> examples.

well, as always: read the docs ;-)

Torsten

> 
> Brian
> 
> > From: Torsten.Hothorn@rzmail.uni-erlangen.de
> > Date: Mon, 26 Feb 2001 13:48:36 +0100 (MET)
> > To: r-devel@stat.math.ethz.ch
> > Subject: [Rd] %*% in examples (PR#855)
> > CC: R-bugs@biostat.ku.dk
> > X-Loop: R-bugs@biostat.ku.dk
> > 
> > 
> > Hi, 
> > 
> > when we add 
> > 
> > \examples{
> > a <- 1:4
> > 
> > a %*% a
> > }
> > 
> > into a Rd-file are run R CMD check, the resulting R code is 
> > 
> > a <- 1:4
> > 
> > a
> > 
> > So, %*% ... is lost on the way if I'm not totally confused. 
> > 
> > Torsten
> > 
> > --please do not edit the information below--
> > 
> > Version:
> >  platform = i686-pc-linux-gnu
> >  arch = i686
> >  os = linux-gnu
> >  system = i686, linux-gnu
> >  status = Patched
> >  major = 1
> >  minor = 2.0
> >  year = 2001
> >  month = 01
> >  day = 07
> >  language = R
> > 
> > Search Path:
> >  .GlobalEnv, package:ctest, Autoloads, package:base
> > 
> > 
> > 
> > 
> -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
> > r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
> > Send "info", "help", or "[un]subscribe"
> > (in the "body", not the subject !)  To: r-devel-request@stat.math.ethz.ch
> > 
> _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
> 
> -- 
> 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-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._