Skip to content
Prev 56577 / 63421 Next

Discrepancy between is.list() and is(x, "list")

On Wed, Mar 27, 2019 at 6:27 PM Abs Spurdle <spurdle.a at gmail.com> wrote:
I don't think this is a good pattern. It's better to clearly define a
constructor function that checks that `object` is the correct
underlying base type for your class -
https://adv-r.hadley.nz/s3.html#s3-classes.

Hadley