Can I just check something please. I am moving over a piece of work from caret to tidymodels. I am running a random forest model on my data and then predicting on the test dataset that contains 1 row of predictors.
In caret this runs fine but in tidymodels I am getting the error below;
Error in array(STATS, dims[perm]) : 'dims' cannot be of length 0
In addition: Warning message:
In sweep(res[, names(object$sds)], 2, object$sds, "/") :
STATS is longer than the extent of 'dim(x)[MARGIN]'
This error goes away if I duplicate the test data so I have 2 rows in my test dataset. Is there a limitation within tidymodels that you need to predict on >1 rows of predictors? If not then I'll put together a full reprex and send through.