makeJobScripts: Generate a set of shell scripts to launch individual jobs

View source: R/shell-scripts.R

makeJobScriptsR Documentation

Generate a set of shell scripts to launch individual jobs

Description

This function uses a whisker (aka Mustache) template file to create one or more job scripts.

Usage

makeJobScripts(
  template,
  jobScripts,
  processes = 1,
  scriptPath = "rendered-scripts",
  ...
)

Arguments

template

Path to the script whisker template.

jobScripts

The file names for the job scripts to create through templating. Should match the length of the longest variable argument.

processes

The number of processes launched jobs are sharing This makes a 'threads' variable available during template rendering, which doles out an even number of threads to each job based on the total process count.

scriptPath

Path to the local folder where rendered scripts should be saved.

...

A variable number of other arguments that are available as variable bindings when the template is rendered. Values not of length 1 should all be of the same length (the number of job scripts being created).

Value

A List with one named element (jobs) containing a vector of job script file names. Passed to makeLaunchScript


whitwort/AWSTools documentation built on July 9, 2023, 2:56 a.m.