writeCWL: Write CWL

View source: R/writeCWL.R

writeCWLR Documentation

Write CWL

Description

write 'cwlProcess' to cwl and yml.

Usage

writeCWL(
  cwl,
  prefix = deparse(substitute(cwl)),
  outdir = tempfile(),
  docker = TRUE,
  libPaths = TRUE,
  ...
)

Arguments

cwl

A 'cwlProcess' or 'cwlWorkflow' object.

prefix

The prefix of '.cwl' and '.yml' files to be generated.

outdir

The output directory for the '.cwl' and '.yml' files.

docker

Whether to use docker.

libPaths

Whether to add local R libaray paths to R script.

...

Other options from 'yaml::write_yaml'.

Value

A CWL file and A YML file.

Examples

input1 <- InputParam(id = "sth")
echo <- cwlProcess(baseCommand = "echo",
                 inputs = InputParamList(input1))
writeCWL(echo)

hubentu/Rcwl documentation built on May 9, 2024, 2:14 a.m.