From @purd|e@@ @end|ng |rom gm@||@com  Tue Mar 26 04:27:55 2019
From: @purd|e@@ @end|ng |rom gm@||@com (Abs Spurdle)
Date: Tue, 26 Mar 2019 16:27:55 +1300
Subject: [Rd] Discrepancy between is.list() and is(x, "list")
Message-ID: <CAB8pepyU2qbU7fd1J9J6kyr_657PHFYHoJV6fnvNiHqqjq-24w@mail.gmail.com>

> I have noticed a discrepancy between is.list() and is(x, ?list?)

There's a similar problem with inherits().

On R 3.5.3:

> f = function () 1
> class (f) = "f"

> is.function (f)
[1] TRUE
> inherits (f, "function")
[1] FALSE

I didn't check what happens with:
> class (f) = c ("f", "function")

However, they should have the same result, regardless.

> Is this discrepancy intentional?

I hope not.

	[[alternative HTML version deleted]]



[Rd] Discrepancy between is.list() and is(x, "list")
Abs Spurdle