From tlumley at u.washington.edu  Fri May 23 07:40:56 2003
From: tlumley at u.washington.edu (Thomas Lumley)
Date: Fri May 23 15:41:55 2003
Subject: [Rd] How to avoid function masking
In-Reply-To: <16078.7002.496844.694646@gargle.gargle.HOWL>
Message-ID: <Pine.A41.4.44.0305230635540.25218-100000@homer32.u.washington.edu>

On Fri, 23 May 2003, Martin Maechler wrote:

> >>>>> "Greg" == Warnes, Gregory R <gregory_r_warnes@groton.pfizer.com>
> >>>>>     on Thu, 22 May 2003 17:20:59 -0400 writes:
>
>     Greg> I just checked, and r-devel does not have a "pos"
>     Greg> argument to library() or require().
>
> You checked wrongly. library() *does* for several days now.
> (require doesn't -- on purpose?)

On purpose, I think. Firstly, if you want that level of control you can
use library().  Secondly, what should require("MASS",pos=4) return if MASS
is at pos=2? -- it seems to me it should return FALSE.

	-thomas


[Rd] How to avoid function masking
Thomas Lumley