build_template: Build Condor File

Description Usage Arguments Details Value See Also Examples

Description

Parameterized construction of a condor file.

Usage

1
2
3
4
5
build_template(file, username = system2("whoami", stdout = TRUE),
  job_type = c("standard", "test", "short", "long"), transfer = "YES",
  transfer_time = "ON_EXIT", args = "$(Process)", tag = "job",
  init_dir = "jobs", input_files = NULL, output_files = NULL,
  jobs = 1, mem = 1, template_file = NULL)

Arguments

file

characer, filename of the R script to run on the cluster

username

character, username on cluster, Default: system2("whoami", stdout = TRUE)

job_type

character, type of cluster to use, Default: c('standard', 'test', 'short', 'long')

transfer

character, transfer file back, Default: 'YES'

transfer_time

character, when to transfer the file, Default: 'ON_EXIT'

args

character, arguments to pass to the worker nodes from condor, Default: '$(Process)'

tag

character, name of job for subdirectory naming scheme, Default: 'job'

init_dir

character, initial directory for condor to invoke script, Default: 'jobs'

input_files

character, names of files to pass to the worker nodes, Default: NULL

output_files

character, names of files to return from the worker nodes, Default: NULL

jobs

numeric, number of nodes to run on, Default: 1

mem

numeric, size of memory to request, Default: 1

template_file

character, name of the saved template file, Default: NULL

Details

see Condor User Manual for full user manual on what can be put in a Condor submission file.

Value

If template_file is NULL then the populated template is printed to the console.

See Also

whisker.render

Examples

1
build_template(file='file.R')

yuliasidi/condor documentation built on May 17, 2019, 2:15 a.m.