[Rd] :: and ::: as .Primitives?
haverty.peter at gene.com
Thu Jan 22 19:35:05 CET 2015
When S4 methods are defined on base function (say, "match"), the
function becomes a method with the body "base::match(x,y)". A call to
such a function often spends more time doing "::" than in the function
itself. I always assumed that "::" was a very low-level thing, but it
turns out to be a plain old function defined in base/R/namespace.R.
What would you all think about making "::" and ":::" .Primitives? I
have submitted some examples, timings, and a patch to the R bug
I'd be very interested to hear your thoughts on the matter.
Peter M. Haverty, Ph.D.
phaverty at gene.com
More information about the R-devel