Problem wiith perf PLSDA

Hello, I am trying to assess my PLS-DA classification performance with the perf function.
This is my code:
perf_plsda_Leaf ← perf(plsda_Leaf, validation = “Mfold”, folds = 5, progressBar = FALSE, nrepeat = 100)
However, I get ou the following error:
Error in UseMethod(“perf”) : no applicable method for ‘perf’ applied to an object of class “c(‘plsda’, ‘mvr’)”
Until couple of weeks ago it was working well. Can anyone help me?
Thank you

hi @Bea ,
nothing has changed in mixOmics, as far as I am concerned. You probably have other packages loaded that are being called instead? or maybe your plsda_Leafhas changed and is not a PLSDA object?

Try this

perf_plsda_Leaf ← mixOmics:: perf(plsda_Leaf, validation = “Mfold”, folds = 5, progressBar = FALSE, nrepeat = 100)

Kim-Anh