What people forget when comparing the basic model and the use of the carriage is that the carriage has a lot of extra things.
Take, for example, your random forest. therefore bootstrap, number 3 and tuneLength 5. So you solve 3 times, and because of tuneLength you are trying to find a good value for mtry. In total, you run 15 random forests and compare them to get the best for the final model, but only 1 if you use the basic random forest model.
You also work in parallel on 4 cores, and randomforest - all available observations, so all your training observations will be 4 times in memory. There probably is not much memory left to train the model.
My advice is to start shrinking to see if you can speed up the process, for example, set the boot number to 1 and set the length to the default value of 3. Or even set the traincontrol method to "none", just to get an idea of ββhow much quickly the model is at the minimum settings and does not require re-sampling.
source share