[Bioc-devel] Rdbi namespace issue

Sean Davis sdavis2 at mail.nih.gov
Thu Sep 21 15:59:03 CEST 2006


On Thursday 21 September 2006 09:48, Sean Davis wrote:
> Jianhua,
>
> I just tried loading RbdiPgSQL and then Rdbi and found these errors with
> Rdbi from the devel repository.  Any ideas on how to fix this?  I'm cc'ing
> the bioc-devel list in case there is something interesting to be learned
> from the discussion, given the state of namespaces.

Just looking a bit, it seems that Rdbi has this statement in 'zzz.R':
.onLoad <- function(lib, pkg) {
  # Changed by JZ from Rdbi.PgSQL to RdbiPgSQL
  autoload("PgSQL", "RdbiPgSQL")
# autoload("MySQL", "Rdbi.MySQL")
.....

And in RdbiPgSQL NAMESPACE:
import(Rdbi)

Is this causing the circular dependency?


> > > library(Rdbi) 
>
> Loading required package: Rdbi
> Error in loadNamespace(package, c(which.lib.loc, lib.loc), keep.source =
> keep.source) :
> 	cyclic name space dependencies are not supported
> Error: package 'Rdbi' could not be loaded
> Error: .onLoad failed in 'loadNamespace' for 'Rdbi'
> Error: package/namespace load failed for 'Rdbi'
>
> > sessionInfo()
>
> R version 2.4.0 alpha (2006-09-13 r39286)
> x86_64-unknown-linux-gnu
>
> locale:
> LC_CTYPE=en_US.UTF-8;LC_NUMERIC=C;LC_TIME=en_US.UTF-8;LC_COLLATE=en_US.UTF-
>8;LC_MONETARY=en_US.UTF-8;LC_MESSAGES=en_US.UTF-8;LC_PAPER=en_US.UTF-8;LC_NA
>ME=C;LC_ADDRESS=C;LC_TELEPHONE=C;LC_MEASUREMENT=en_US.UTF-8;LC_IDENTIFICATIO
>N=C
>
> attached base packages:
> [1] "methods"   "stats"     "graphics"  "grDevices" "utils"     "datasets"
> [7] "base"
>
>
> _______________________________________________
> Bioc-devel at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/bioc-devel



More information about the Bioc-devel mailing list