Skip to content
Prev 45082 / 63424 Next

mapply error with Math (S4 group generic)

Problem solved. Martin Morgan pointed out to me that the error occurs
because in the method in raster I used, to get the function name which
I need for branching, the naive approach:

funname <- as.character(sys.call(sys.parent())[[1]])

from the code of callGeneric Martin deduced that I should instead use

funname <- .Generic

That indeed made the problem go away.
Best, Robert
On Wed, Feb 13, 2013 at 4:35 PM, Robert J. Hijmans <r.hijmans at gmail.com> wrote: