do_in_parallel {simulator} | R Documentation |
Do a function in parallel.
Description
This is an internal function. The function_to_do is done in parallel and its output is saved either on slave (locally) or on master.
Usage
do_in_parallel(
function_to_do,
function_params,
save_to_file,
save_params,
socket_names,
libraries,
save_locally = TRUE
)
Arguments
function_to_do |
this is the function that will be done in parallel |
function_params |
a list where |
save_to_file |
function that saves stuff to file |
save_params |
a list where |
socket_names |
quoting from |
libraries |
character vector of R packages that will be needed on the slaves. |
save_locally |
if TRUE, then files will be saved on slaves. If FALSE, they will be saved on master. |