@scholzmx @rstats The parallel package has stuff for working with clusters, very similar to Julia's pmap but for R (I think clusterapply and it's ilk will probably get you want you want in a functional style, and it has stuff to easily detect cores and such).
https://www.rdocumentation.org/packages/parallel/versions/3.6.2