fix test#2
Open
zdebruine wants to merge 1 commit into
Open
Conversation
9 tasks
jdblischak
reviewed
Nov 12, 2021
|
|
||
| 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") ) |
There was a problem hiding this comment.
The recommended fix to update this for R4 is to use inherits() instead of ==
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR is to fix an issue where the class of an object with multiple classes (
matrix array) is evaluated against a single classmatrixand 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.