Skip to content
Prev 2842 / 21312 Next

[Bioc-devel] graph package conflict with rtracklayer

On 10/06/2011 10:32 AM, John Chambers wrote:
Hi John et al.,

For a reproducible example of Malcom's problem under R-2-12.2 I get

 > library(graph); library(rtracklayer)
Loading required package: RCurl
Loading required package: bitops
 > fl = system.file("tests", "test.bed", package="rtracklayer")
 > import.bed(fl)
Error in function (classes, fdef, mtable)  :
   unable to find an inherited method for function "import.ucsc", for 
signature "file"

but under R-2.14.0 alpha I get

 > library(graph); library(rtracklayer)
Loading required package: RCurl
Loading required package: bitops
 > fl = system.file("tests", "test.bed", package="rtracklayer")
 > res = import.bed(fl)
 >

so I think the symptom has been resolved.

As previously and for what it's worth pkgA contains

   setOldClass(c("file", "connection")
   setClassUnion("characterORconnection", c("character", "connection"))

and does not export any class. Nonetheless the class definition leaks to 
the global name space (likewise with setOldClass alone).

 > library(pkgA); getClassDef("file")
Virtual Class "file" [package "pkgA"]

Slots:

Name:   .S3Class
Class: character

Extends:
Class "connection", directly
Class "oldClass", by class "connection", distance 2
Class "characterORconnection", by class "connection", distance 2


 >