Fatal Error Occured R Session Aborted: Create a factor vector of predictions on test data

A copy of the error message would be helpful.

Also, I'd suggest offering as close to a reprex as possible in setting up your question. With a minimal REPRoducible EXample (reprex) it makes it much easier for others to understand your issue and figure out how to help.
For example, currently the code refers to data folks won't have access to.

If you're unable to recreate your error with dummy data, and you're okay with the public seeing desc.csv, rstudio.cloud might be a good place to host a reprex.