write `cwlProcess` to cwl and yml.

writeCWL(
  cwl,
  prefix = deparse(substitute(cwl)),
  outdir = tempfile(),
  docker = 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.

...

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)
#> cwlout #> "/var/folders/7t/9l4kkf_j2sqbpn321y9g5558z96ck_/T//Rtmp14w3g3/file49b71161062/echo.cwl" #> ymlout #> "/var/folders/7t/9l4kkf_j2sqbpn321y9g5558z96ck_/T//Rtmp14w3g3/file49b71161062/echo.yml"