[R] packagename:::functionname vs. importFrom
luke-tierney at uiowa.edu
luke-tierney at uiowa.edu
Tue Jan 4 04:58:23 CET 2011
On Mon, 3 Jan 2011, Frank Harrell wrote:
>
> Correct. I'm doing this because of non-exported functions in other packages,
> so I need :::
>
> I'd still appreciate any insight about whether importFrom in NAMESPACE
> defers package loading so that if the package is not actually used (and is
> not installed) there will be no problem.
It does not -- the namespace from which you import is loaded when your
package is. (Also you can't import unexported variables.)
Best,
luke
>
> Thanks
> Frank
>
>
> -----
> Frank Harrell
> Department of Biostatistics, Vanderbilt University
>
--
Luke Tierney
Statistics and Actuarial Science
Ralph E. Wareham Professor of Mathematical Sciences
University of Iowa Phone: 319-335-3386
Department of Statistics and Fax: 319-335-3017
Actuarial Science
241 Schaeffer Hall email: luke at stat.uiowa.edu
Iowa City, IA 52242 WWW: http://www.stat.uiowa.edu
More information about the R-help
mailing list