Tidymodels: Error in xgboost::xgb.DMatrix(data = newdata, missing = NA): 'data' has class 'character' and length 29241. #> 'data' accepts either a numeric matrix or a single filename.

I can't help you but I have seen the same error message and reported it here (with a reprex): Error during tuning when using add_recipe() instead of add_formula() to workflow in tidymodels