Displaying 1 result from an estimated 1 matches for "annodf".
Did you mean:
annodex
2011 Apr 15
3
DESCRIPTION file and Rd examples
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 <- as.data.frame(anno) # anno is the GRanges object.
and that second line gives:
Error in as.data.frame.default(anno) :
cannot coerce class 'structure("GRanges", package = "GenomicRanges")' into a data.frame
Calls: annoGR2DF ... annoGR2DF -> .local -> as.da...