[prev in list] [next in list] [prev in thread] [next in thread]
List: bioconductor
Subject: Re: [BioC] dynamic library() calls
From: "Jeremiah H. Savage" <jeremiahsavage () gmail ! com>
Date: 2010-06-28 23:34:31
Message-ID: AANLkTilCQXtpa8XEHYI3lcoYAXhj9Yl-eGVIYCJCgUhC () mail ! gmail ! com
[Download RAW message or body]
Never mind, I found the fix:
library(gpllibrary,character.only=TRUE)
On Mon, Jun 28, 2010 at 4:18 PM, Jeremiah H. Savage <
jeremiahsavage@gmail.com> wrote:
> 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]]
_______________________________________________
Bioconductor mailing list
Bioconductor@stat.math.ethz.ch
https://stat.ethz.ch/mailman/listinfo/bioconductor
Search the archives: http://news.gmane.org/gmane.science.biology.informatics.conductor
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic