cheops_run: Run a function on the cluster

Description Usage Arguments Details Value See Also

Description

Run a function on the cluster

Usage

1
2
3
4
cheops_run(fun, options, jobname, args = list(), packages = c(),
  module = getOption("cheopsr.module"),
  account = getOption("cheopsr.account"),
  lib = getOption("cheopsr.libloc"))

Arguments

fun

a function. The function must accept an argument with the name cl

options

named list of cluster options generated by cheops_slurmcontrol

jobname

name of the job as character string

args

optionally a list of additional arguments passed to fun via do.call

packages

character vector of package names to be loaded on the cluster

module

name of r module to be loaded

account

name of the account to be charged

lib

location of the r lib on the cluster

Details

starts a slurm job on the cluster. after the job is terminated, results have to be retrieved manually with the command: cheops_readRDS(<filepath>).

Value

a named list with the name and id of the job and the file path on the cluster for the results

See Also

parLapplyLB


bonartm/cheopsr documentation built on May 3, 2019, 9:37 p.m.