Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: length(class2) == 1L is not TRUE #208

Closed
aljabadi opened this issue Apr 10, 2022 · 0 comments · Fixed by #209
Closed

Error: length(class2) == 1L is not TRUE #208

aljabadi opened this issue Apr 10, 2022 · 0 comments · Fixed by #209
Assignees
Labels
bug Something isn't working

Comments

@aljabadi
Copy link
Collaborator

aljabadi commented Apr 10, 2022

See errors in https://github.com/mixOmicsTeam/mixOmics/runs/5959674958?check_suite_focus=true

The docs for mthods::is says it takes a vector as class2:

image

But it's not true, as we see in the code:
image

Which throws the most unhelpful error if more than one class is provided as of R 4.2.

possible solution

?inherits says that

inherits indicates whether its first argument inherits from any of the classes specified in the what argument.

So the fix is possibly as easy as changing is -> inherits

@aljabadi aljabadi added the bug Something isn't working label Apr 10, 2022
@aljabadi aljabadi self-assigned this Apr 10, 2022
aljabadi pushed a commit that referenced this issue Apr 10, 2022
aljabadi pushed a commit that referenced this issue Apr 10, 2022
zeehio added a commit to zeehio/mixOmics that referenced this issue Apr 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant