Displaying 1 result from an estimated 1 matches for "treatoth".
Did you mean:
treatone
2010 May 21
1
S4 method defined but not used
....
The problem is the following. I define, in the package, a method "[" for the S4 class 'genind'. The method's definition is:
setMethod("[", signature(x="genind", i="ANY", j="ANY", drop="ANY"), function(x, i, j, ..., loc=NULL, treatOther=TRUE, drop=FALSE) {
... ## code of the function
})
When sourcing the code directly from R, this method is found and used normally. However, when loading the package, the method does not seem to be "found" any longer by the dispatcher. For instance, here is an error I get:
### R code
&...