[R] Funny warning message

Prof Brian D Ripley ripley at stats.ox.ac.uk
Wed Apr 7 15:15:03 CEST 1999


On Wed, 7 Apr 1999, Bill Venables wrote:

> >>>>> "John" == John Logsdon <j.logsdon at lancaster.ac.uk> writes:
> 
>     John> So, as an entry to the wish-list, since R handles it
>     John> correctly, wouldn't it be better to suppress the
>     John> warning message - via an option statement.  After all
>     John> t() is clearly different to t[ ] or t so the context
>     John> should be able to determine what is really wanted.
> 
> As it was doing, of course.  All you were getting was a warning
> message, which to my mind is not a bad idea.  If you did use t
> for a function name (and if you use it as a variable name, why
> not a function?) you would probably find that some vital system
> function was suddenly and mysteriously broken.

The intention in a future version of R to warn only if the object
which is masked is of the same mode ("function" here). This was decided
a couple of weeks ago, but we needed to get R-0.64 out first.

Brian

-- 
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