Skip to content
Prev 61671 / 63424 Next

codetools wrongly complains about lazy evaluation in S4 methods

Thanks both.  Yes, I was aware of globalVariables, etc.  I guess I was hoping
to be pointed to the right place in the source code, in case the issue could
be addressed properly, notably as it seems to have already been addressed for
functions that are not S4 methods, i.e., codetools is apparently not bothered
by

     def <- function(x = y) { y <- 0; x }

but still complains about

     setMethod("someGeneric", "someClass", def)

...

Mikael
On 2023-06-07 5:13 am, Gabriel Becker wrote: