From @purd|e@@ @end|ng |rom gm@||@com  Tue Mar 26 04:43:47 2019
From: @purd|e@@ @end|ng |rom gm@||@com (Abs Spurdle)
Date: Tue, 26 Mar 2019 16:43:47 +1300
Subject: [Rd] bugs in head() and tail()
Message-ID: <CAB8pepwajebtmzuGyMzd7ak_PhMakSwkXS-JEqV4VFW_2kh7sw@mail.gmail.com>

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



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