Read a CWL file into a list

read_cwl(file, format = c("json", "yaml"))

Arguments

file

A file path, character string, or connection.

format

CWL storage format. "json" or "yaml".

Value

List representation of the input CWL

Examples

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