[R] masked objects

Prof Brian Ripley ripley at stats.ox.ac.uk
Tue Jul 1 09:43:48 CEST 2003


On Tue, 1 Jul 2003, ATHANASIA KAMARIOTIS wrote:

> When opening the software R it appears this message:
> 
> 
> 
> -----------------------------------------------------------------
> Attaching package 'methods':
> 
> 
>         The following object(s) are masked _by_ .GlobalEnv :
> 
>          new 
> 
> 
> ------------------------------------------------------------------
> 
> 
> May you please answer to the following question: How can I restore the 
> object new?

Your object `new' is there: the system one is being masked.  This does not
matter if you are not using formal classes (from package `methods').

To avoid the message, rename your object

> mynew <- new
> rm(new)


-- 
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 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595




More information about the R-help mailing list