[R] packagename:::functionname vs. importFrom
Hadley Wickham
hadley at rice.edu
Tue Jan 4 01:48:20 CET 2011
>> I think you mean packagename::functionname? The three colon form is
>> for accessing non-exported objects.
>
> Normally two colons suffice, but within a package you need three to
> access exported but un-imported objects :)
Are you sure?
Note that it is typically a design mistake to use ‘:::’ in your
code since the corresponding object has probably been kept
internal for a good reason. Consider contacting the package
maintainer if you feel the need to access the object for anything
but mere inspection.
Hadley
--
Assistant Professor / Dobelman Family Junior Chair
Department of Statistics / Rice University
http://had.co.nz/
More information about the R-help
mailing list