[R] Error loading a dependency in a package: missing namespace?

Seth Falcon sfalcon at fhcrc.org
Mon Mar 5 18:15:39 CET 2007


"Carlos J. Gil Bellosta " <cgb at datanalytics.com> writes:
> import(methods, Biobase, outliers)

> * checking whether the package can be loaded ... ERROR
> Loading required package: Biobase
> Loading required package: tools
>
> Welcome to Bioconductor
>
>    Vignettes contain introductory material. To view, type
>    'openVignette()' or start with 'help(Biobase)'. For details
>    on reading vignettes, see the openVignette help page.
>
> Loading required package: outliers
> Error in loadNamespace(package, c(which.lib.loc, lib.loc), keep.source
> = keep.source) :
>        in 'pcrAnalysis' classes for export not defined: pcrExprSet
> In addition: Warning message:
> package 'pcrAnalysis' contains no R code in: loadNamespace(package,
> c(which.lib.loc, lib.loc), keep.source = keep.source)
> Error: package/namespace load failed for 'pcrAnalysis'
> Execution halted
>
> It seems that the error is related to something having to do with
> namespaces. The thing is that package "outliers" does not have a
> NAMESPACE file. Could this be an issue?

Yes, you cannot do import(pkg) in the NAMESPACE file if pkg doesn't
itself have a NAMESPACE file.

So try just removing that from your NAMESPACE file.

+ seth

-- 
Seth Falcon | Computational Biology | Fred Hutchinson Cancer Research Center
http://bioconductor.org



More information about the R-help mailing list