Re: [Rd] DESCRIPTION file and Rd examples

From: Uwe Ligges <>
Date: Fri, 15 Apr 2011 17:42:45 +0200

It would probably be helpful if you could point us to the source version of your package so that we can take a look what happens. Which version of R, and the other required packages are you talking about?

Uwe Ligges

On 15.04.2011 05:00, Dario Strbenac wrote:
> I have a confusing error from R CMD check that I don't get when running the example manually by hand.
> In the \examples section of an Rd file, I create a GRanges object, then I call a function with the GRanges object, whose first 2 lines are

> require(GenomicRanges)
> annoDF<- # anno is the GRanges object.
> and that second line gives:
> Error in :
> cannot coerce class 'structure("GRanges", package = "GenomicRanges")' into a data.frame
> Calls: annoGR2DF ... annoGR2DF -> .local -> ->
> I have GenomicRanges listed in my Imports: field, and IRanges in the Suggests: of the DESCRIPTION file (it's require()d elsewhere). I'm trying to avoid putting packages in Depends: , so my package loads fast. Any tips of what I'm not understanding properly ?
> Thanks.
> --------------------------------------
> Dario Strbenac
> Research Assistant
> Cancer Epigenetics
> Garvan Institute of Medical Research
> Darlinghurst NSW 2010
> Australia
> ______________________________________________
> mailing list
> mailing list Received on Fri 15 Apr 2011 - 15:47:19 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Sat 16 Apr 2011 - 03:50:46 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.

list of date sections of archive