I'm new to R and RStudio and have been experimenting with predictive modeling. The following train function works without parallel processing but when I implement doSNOW makeCluster, I get the error shown below related to a variable named "optimismBoot". I've searched in vain for a resolution, tried installing and uninstalling packages, but nothing works. Any insight appreciated.
cl <- makeCluster(2, type = "SOCK")
registerDoSNOW(cl)
caret.cv <- train(ReturnedToMF ~ .,
data = trees.cetstrain,
method = "xgbTree",
tuneGrid = tune.grid,
trControl = cetstrain.control)
Error in e$fun(obj, substitute(ex), parent.frame(), e$data) :
unable to find variable "optimismBoot"
I found the following link on this site but it doesn't really provide a solution to make parallel processing work: Caret on R spills "unable to find variable "optimismBoot"" error message