r-devel,

In a development version of the CRAN package metrumrg, I write ...

require(reshape)
setGeneric('cast')
setOldClass(c('keyed','data.frame'))
setMethod('cast','keyed', function ...)

The result is satisfactory when sourcing the code directly, but when
checking the package (which has 'reshape' as a dependency in the
DESCRIPTION file) I get the following:

"Error in setGeneric("cast") : must supply a function skeleton for
???cast???, explicitly or via an existing function."

The help for setGeneric() seems to suggest that no function skeleton is
needed  when creating a generic for a function defined in some other
package.  I found one or two previous related posts, but no obvious
resolution.

Comments appreciated,

Tim Bergsma, PhD

	[[alternative HTML version deleted]]

