paulgeeleher / pRRophetic

R package
21 stars 13 forks source link

fix: Class matrix now is "matrix" "array" and length wasn't supported #6

Closed flaviaerius closed 11 months ago

flaviaerius commented 11 months ago

Description

After trying to run the function pRRopheticPredict in my R 4.3.1 version, I got an error concerning my input file not being a matrix, although it was. I have found out this was due to a change in R matrix class that now was "matrix" "array", a vector of length 2. Therefore, I fixed this error to be able to run the package locally (I have actually fixed it in the tar.gz file), and it worked perfectly.

Technical details

I have selected only the first element to be tested in the if clause concerning it's class.

Tests

Modify this function in the tar.gz file R folder, delete R.zip, zip compress R folder, compress package folder, and install it in R. Run the function pRRopheticPredict with a gene expression matrix.