To allow caret to use multiple nodes and multiple cores you need to create and register the appropriate foreach parallel backend. You can do that with the doSNOW package by creating a snow cluster that starts multiple workers per node by specifying the same hostname multiple times. To start 24 workers per node, you could use:
library(doSNOW)
cl <- makeSOCKcluster(c(rep('node1', 24), rep('node2', 24)))
registerDoSNOW(cl)
The makeSOCKcluster
function uses ssh to start the workers, so you should set up password-less ssh. That can be difficult (impossible?) to do on Windows, but it's commonly done on Linux and Mac OS X. If you're using a Linux cluster, it may be better to use makeMPIcluster
.