(Using R 3.5.3).

I found bugs in head() and tail().

The following works:

> f = function () 1
> head (f)
1 function ()
2 1

However, the following does not:

> class (f) = "f"
> head (f)
Error in x[seq_len(n)] : object of type 'closure' is not subsettable

        [[alternative HTML version deleted]]

______________________________________________
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel

Reply via email to