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

Maybe need to update code for checking data class? #89

Closed
WT215 opened this issue Jan 14, 2021 · 1 comment
Closed

Maybe need to update code for checking data class? #89

WT215 opened this issue Jan 14, 2021 · 1 comment

Comments

@WT215
Copy link

WT215 commented Jan 14, 2021

Hi,

Thank you for your nice package!

I got the following error:

Warning message:
In if (class(inputmatrix) %in% c("data.frame", "matrix"))

In current version R 4.0.3, instead of matrix, the class of matrix is

> class(Dat_cast1$Data)
[1] "matrix" "array" 

Hence the relevant code need to be udpated.

@RubD
Copy link
Collaborator

RubD commented Jan 14, 2021

Hi Wenhao,

Thanks for the feedback. I've quickly fixed the issue.

inherits(inputmatrix, what = c('data.frame', 'matrix'))

In the future we'll use safer approaches to check an object class!

Ruben

@WT215 WT215 closed this as completed Jan 14, 2021
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

No branches or pull requests

2 participants