[Rd] bugs in head() and tail()

Abs Spurdle @purd|e@@ @end|ng |rom gm@||@com
Tue Mar 26 04:43:47 CET 2019


(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]]



More information about the R-devel mailing list