Create a future cluster for GCE objects
S3 method for as.cluster()
in the future
package.
## S3 method for class 'gce_instance' as.cluster(x, project = gce_get_global_project(), zone = gce_get_global_zone(), rshopts = ssh_options(x), ..., recursive = FALSE)
x
: The instance to make a future clusterproject
: The GCE projectzone
: The GCE zonershopts
: Options for the SSH...
: Other arguments passed to makeDockerClusterPSOCKrecursive
: Not used.A cluster
object.
Only works for r-base containers created via gce_vm_template("r-base")
or for docker containers created using the --net=host
argument flag
## Not run: vm <- gce_vm("r-base", name = "future", predefined_type = "f1-micro") plan(cluster, workers = vm) ## equivalent to workers = as.cluster(vm) x %<-% { Sys.getinfo() } print(x) ## End(Not run)
Useful links