step_tmpl_do_call_script: Step template to run an R script with a set of arguments

Description Usage Arguments Value Step Template

View source: R/step_templates.R

Description

Step template to run an R script with a set of arguments

Usage

1
step_tmpl_do_call_script(r_script, args, setup_script = NULL)

Arguments

r_script

The R script to be run by the workflow step

args

a list of arguments to the function call. The names attribute of args gives the argument names.

setup_script

(optional) a bash script to be run first. This can be used to load the required modules (like R, python, etc).

Value

a template function to be used by add_workflow_step

Step Template

Step Templates are helper functions to be used within add_workflow_step. Some basic ones are provided by the slurmworkflow package. They instruct the workflow to run either a bash script, a set of bash lines given as a character vector or an R script. Additional Step Templates can be created to simplify specific tasks, see the vignette("making-a-custom-step-template") for details.


AdrienLeGuillou/slurmworkflow documentation built on Jan. 13, 2022, 5:13 p.m.