I have an spls-regression model and use predict() on new X data. This gernerally works fine, but fails when X has only one row: "Error ... attempt to set 'rownames' on an object with no dimensions"
Debugging shows that the error occurs in the line
rownames(Y.hat[[i]]) = rownames(newdata[[i]])
throws a "NULL" in the 1 row case.
Any idea what is going on here?