Read a CWL file into a list
read_cwl(file, format = c("json", "yaml"))
A file path, character string, or connection.
CWL storage format. "json"
or "yaml"
.
List representation of the input CWL
system.file("cwl/sbg/workflow/rnaseq-salmon.json", package = "tidycwl") %>%
read_cwl(format = "json")
#> Name: Salmon Workflow CWL 1.0
#> Class: Workflow
#> CWL Version: v1.0
system.file("cwl/sbg/workflow/rnaseq-salmon.cwl", package = "tidycwl") %>%
read_cwl(format = "yaml")
#> Name: Salmon Workflow CWL 1.0
#> Class: Workflow
#> CWL Version: v1.0