[R] Confused about loading other packages from a package

Prof Brian Ripley ripley at stats.ox.ac.uk
Thu Sep 9 21:12:16 CEST 2004

On Thu, 9 Sep 2004, hadley wickham wrote:

> Unfortunately, marrayClasses doesn't seem to have a namespace:
> > library(maVis)
> Error in loadNamespace(imp[[1]], c(lib.loc, .libPaths()), keep.source) : 
>         package 'marrayClasses' does not have a name space
> Error in library(maVis) : package/namespace load failed
> Any other ideas?

Roger's other one is the best one: use pre-2.0.0 and have 
Depends: marrayClasses in your DESCRIPTION file.

Having require(marrayClasses) in install.R in your package may work, 
although you may need it in R_PROFILE.R as well.

Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

More information about the R-help mailing list