Note that you can only evaluate in the global environment: it doesn't seem to make much sense to evaluate elsewhere on remote nodes.
cluster_eval(cluster, expr)cluster_eval_(cluster, expr)
cluster_eval_(cluster, expr)
Cluster to work on
Expression to evaluate. cluster_eval uses non-standard evaluation to automatically quote. For cluster_eval_, you must quote it yourself.
cluster_eval
cluster_eval_
# NOT RUN { cl <- get_default_cluster() cl %>% cluster_eval(1 + 1) cl %>% cluster_eval_(quote(1 + 1)) # }
Run the code above in your browser using DataCamp Workspace