[R] conditional evaluation with ";"?

Prof Brian D Ripley ripley at stats.ox.ac.uk
Wed Jun 6 14:15:46 CEST 2001


On Wed, 6 Jun 2001, Peter Malewski wrote:

> Is this a bug:
> assume "XYZ" is a non existing object:
>
> > XYZ
> Error: Object "XYZ" not found
>
> then:
>
> > XYZ;ls()
> Error: Object "XYZ" not found
> >
>
>
> ls() is not evaluated ("XYZ;XYZ" don't give two errors)
>
>
> I'm quiete unsure if this is intended help(";") returns "No documentation"

It is intended: it is what all S variants do.  You have pasted in a series
of expressions: evaluation stops at the first error.

`;' is part of the language definition: if this is covered anywhere I would
expect it to be in the R Language Manual.


-- 
Brian D. Ripley,                  ripley at 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 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-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list