Evaluates an R Expression on One or More Hosts
on_hostname(hostnames, expr, ..., on_error = c("stop", "asis"), cache = FALSE)
A character vector of hostnames.
The R expression to be evaluated on each host.
A character string specifying how to handle errors.
If "stop"
(default), then the error is relayed.
If "asis"
, then the error (the base::condition object) is returned.
If TRUE
, cached results on file are considered.
(optional) Additional arguments passed to future::future()
.
A named list with names hostnames
.
This function utilizes the future framework and specifically the future.batchtools package to evaluate the expression on a particular host by submitting it via the SGE scheduler.