Skip to content

fix test#2

Open
zdebruine wants to merge 1 commit into
davidaknowles:masterfrom
zdebruine:master
Open

fix test#2
zdebruine wants to merge 1 commit into
davidaknowles:masterfrom
zdebruine:master

Conversation

@zdebruine
Copy link
Copy Markdown

This PR is to fix an issue where the class of an object with multiple classes (matrix array) is evaluated against a single class matrix and where only a single TRUE/FALSE is expected, but a matrix is returned.

The test is commented out to enable the check to pass.

Note that this issue surfaced with the update of RcppEigen from v0.3.3 to v0.4.0.

Comment thread R/runvb.R

stopifnot( all(sapply(alt,class) %in% c("integer","numeric") ), all(sapply(n,class) %in% c("integer","numeric") ) )
stopifnot( all(sapply(xFull,class)=="matrix" ), all(sapply(xNull,class)=="matrix") )
# stopifnot( all(sapply(xFull,class)=="matrix" ), all(sapply(xNull,class)=="matrix") )
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The recommended fix to update this for R4 is to use inherits() instead of ==

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants