Currently I get > Error in if (object$engine != "spark" & NCOL(y) == 1 & !(is.vector(y) | : argument is of length zero which doesn't give much of a clue about how to fix things.