Skip to content
Prev 4862 / 12125 Next

[R-pkg-devel] error in sample(), invalid 'size' argument

On Wed, 15 Jan 2020 at 13:58, Roberts, David <droberts at montana.edu> wrote:
Not related to the issue, but please use "inherits" instead.
No, it has not. Nothing stops you from changing the contents of a S3
object, so just verifying the class is not a conformance check.
What do you mean by "list object matrix"?
My guess is that, in some call, you got an unintended simplification
when assigning $member. For any object without a "dim" attribute,
ncol(object) is NULL. And a NULL size in sample() raises such an
error.

I?aki