Hello,
I noticed a difference between S4 methods and ordinary methods for sys.calls(),
where it seems to report everything twice for S4 methods. This seems strange.
Am I overlooking something ?
> f <- function(x)
+ {
+ g(x)
+ }
>
> g <- function(y)
+ {
+ cat(y, '\n')
+ sys.calls()
+ }
>
> f(5
On Wed, 23 Feb 2011, Hervé Pagès wrote:
I get this (with R-2.12 and R-2.13, didn't try with earlier versions):
max(c(NaN, NA))
[1] NA
max(c(NA, NaN))
[1] NaN
I get the same thing with min().
The fact that the result of 'max(x)' or 'min(x)' depends on the order
of the elements in 'x' is su