Re: [Rd] Possible bug in base::namespaceImportFrom?

From: Martin Maechler <maechler_at_stat.math.ethz.ch>
Date: Fri 22 Sep 2006 - 07:54:54 GMT

>>>>> "Seth" == Seth Falcon <sfalcon@fhcrc.org>
>>>>> on Thu, 21 Sep 2006 21:52:00 -0700 writes:

    Seth> Hi, namespaceImportFrom in base/R/namespace.R has the     Seth> following:

    Seth> fdef <- methods:::getGeneric(genName, impenv)

    Seth> The definition of getGeneric is in     Seth> methods/R/RMethodUtils.R starts with:

    Seth> getGeneric <-
    ......
    Seth> function(f, mustFind = FALSE, where = .........)

    Seth> I think the call to getGeneric in namespaceImportFrom
    Seth> should use named arguments because impenv, an
    Seth> environment, will be assigned to the mustFind arg
    Seth> which is most likely not desired.

Indeed. Well spotted, Seth!
Fixed and committed for R-devel and R-beta.

Martin



R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel Received on Fri Sep 22 17:57:11 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 Fri 22 Sep 2006 - 08:30:08 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-devel. Please read the posting guide before posting to the list.