Tried to report this bug on github but none of my text can be seen either in the preview or after submission. So here it goes:
<!--
π Click the "Preview" tab above to see this text in HTML π
-->
Please follow **all the steps** described at https://mixomics-users.discourse.group/t/reproducible-example-to-clarify-issues/470 and next fill in the items below:
------------
π **Describe the bug:**
<!--
I went pack to a script after updating my mixomics package to 6.23.4. Suddenly, this code does not work anymore:
tune.spls1.MAE <- mixOmics::tune.spls(X, Y, ncomp= 1,
+ test.keepX = list.keepX,
+ validation = 'loo',
+ progressBar = FALSE,
+ measure = 'MAE')
Error in Check.entry.pls(X, Y, ncomp, keepX, keepY, mode = mode, scale = scale, :
Unmapped Y contains samples with no associated class. May be caused by NAs in input Y vector
I did check X and Y and they looks fine, all numeric, no NAs
-->
------------
π **reprex results from [reproducible example](https://mixomics-users.discourse.group/t/reproducible-example-to-clarify-issues/470) including sessioninfo():**
------------
π€ **Expected behavior:**
<!--
I expected the tuning to work as it has done previously. Using
data("breast.TCGA")
X <- breast.TCGA$data.train$mrna
Y <- breast.TCGA$data.train$subtype
Y=as.numeric
tune.spls1.MAE <- mixOmics::tune.spls(X, Y, ncomp= 1,
test.keepX = list.keepX,
validation = 'loo',
progressBar = FALSE,
measure = 'MAE')
Works! Just trying my first three columns of X againt Y throws the same error but the numbers look fine. The function can handle negative values, I suppose.
-->
------------
π‘ **Possible solution:**
<!--
No idea. I appreciate your help!
-->