Entering edit mode
Jeremiah H. Savage
▴
110
@jeremiah-h-savage-4102
Last seen 10.3 years ago
I am attempting to use GEOmetadb to select which Affymetrix db to
load, but
I get errors from the library() call.
Any ideas on what to fix to get this to work?
Thank,
Jeremiah
loadlib <- function()
{
library(GEOmetadb)
if (file.exists("GEOmetadb.sqlite")) {
con <- dbConnect("SQLite","GEOmetadb.sqlite")
}
else {
getSQLiteFile()
con <- dbConnect(SQLite(),"GEOmetadb.sqlite")
}
rs <- dbGetQuery(con,"select bioc_package from gpl where
gpl='GPL570'")
gpllibrary <- paste(rs,".db",sep="")
library(gpllibrary)
# Error in library(gpllibrary) : there is no package called
'gpllibrary'
library(gpllibrary[1])
# Error in library(gpllibrary[1]) : 'package' must be of length 1
library(as.character(gpllibrary))
# Error in library(as.character(gpllibrary)) :
# 'package' must be of length 1
}
[[alternative HTML version deleted]]