[R] loading precedence in requires()

Ray Brownrigg Ray.Brownrigg at mcs.vuw.ac.nz
Mon Nov 8 01:33:55 CET 1999


It appears that requires(), when it appears in the .First.lib of a
package, will load the required package *after* the package requiring
it, i.e. the 'required' package appears earlier in the search list than
the package requiring it.

This will cause problems if a package (deliberately) masks any of the
functions in the required package. I.e. the expected masking does not
occur.

Apart from expecting the end-user to issue a library() call for the
required package before the requiring package, are there any
workarounds for this, or is such deliberate masking considered to be a
no-no?

Ray Brownrigg
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list