[BioC] Loading more than 16 annotation packages fails

Tarca, Adi atarca at med.wayne.edu
Mon Jul 28 22:29:56 CEST 2008


 
Dear all,
I have 17 array annotation packages that I want to load and use the
information in them.
After every package loading (via require) I detach the package.
However, I run out of RS-DBI connections. 
Here is the code:


> chips
 [1] "ag"          "ath1121501"  "drosgenome1" "drosophila2" "hcg110"
"hgfocus"     "hgu133a"     "hgu133a2"   
 [9] "hgu133b"     "hgu133plus2" "hgu95a"      "hgu95av2"    "hgu95b"
"hgu95d"      "hgu95e"      "hu35ksuba"  
[17] "hu35ksubb"  
> for (cip in 1:length(chips)){
+ if (require(paste(chips[cip],"db",sep="."),character.only=TRUE)){
+ 
+ pac<-paste("package:",chips[cip],".db",sep="")
+ detach(pos = match(pac, search()))
+ 
+ }
+ }
Loading required package: ag.db
.....
Loading required package: hu35ksubb.db
Error in sqliteNewConnection(drv, ...) : 
  RS-DBI driver: (0cannot allocate a new connection -- maximum of 16
connections already opened)
Error : .onLoad failed in 'loadNamespace' for 'hu35ksubb.db'


Any ideas?
Thanks, 
Adi L. Tarca



More information about the Bioconductor mailing list