Re: [R] object(s) are masked from package - what does it mean?

From: Peter Dalgaard <>
Date: Sun 22 Oct 2006 - 07:26:27 GMT

"tom soyer" <> writes:

> Thanks Marc and Gregor for the detailed explanation. You are right, the
> masking is potentially dangerous. Since R is object oriented, I am surprised
> that this is an issue. Does this mean that encapsulation does not exist in
> R?

R does have namespaces, but you can't have your cake and eat it too: If your attached data frame contains a variable "airquality", then you can't both access that one and the same-named example dataset as just "airquality" (datasets::airquality still works).

   O__  ---- Peter Dalgaard             Ă˜ster Farimagsgade 5, Entr.B
  c/ /'_ --- Dept. of Biostatistics     PO Box 2099, 1014 Cph. K
 (*) \(*) -- University of Copenhagen   Denmark          Ph:  (+45) 35327918
~~~~~~~~~~ - (                  FAX: (+45) 35327907

______________________________________________ mailing list
PLEASE do read the posting guide
and provide commented, minimal, self-contained, reproducible code.
Received on Mon Oct 23 02:12:03 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Sun 22 Oct 2006 - 16:30:13 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.