Per model: yes you would consider only the last component value.
Per group: I assume you mean per sample group. I dont see how this can be calculated, here are the formula we use, feel free to tweak the vip() function for your own needs.
hi @enzo
We have the R2 and Q2 for a PLS object using the perf() function. We have not implemented it for PLS-DA. You could do it manually by inputing Y as a dummy matrix (Y.dummy <- map(Y)) then input in pls(X, Y.dummy), although we never really tested. Q2 and R2 seem best defined for a regression model rather than classification.