Skip to contents

Write config to YAML file

Usage

config_prep_write(x, out)

Arguments

x

(list())
Config list, generated by config_prep_multi().

out

(character(1))
Output file path.

Value

Nothing, called for side effects.

Examples

dir1 <- "extdata/tool1/latest"
path1 <- system.file(dir1, "sampleA.tool1.table1.tsv", package = "nemo")
path2 <- system.file(dir1, "sampleA.tool1.table2.tsv", package = "nemo")
x <- tibble::tibble(
  name = c("table1", "table2"),
  descr = c("Table1 from Tool1.", "Table2 from Tool1."),
  pat = c("\\.tool1\\.table1\\.tsv$", "\\.tool1\\.table2\\.tsv$"),
  type = c("txt", "txt"),
  path = c(path1, path2)
)
config <- config_prep_multi(x)
out <- tempfile(fileext = ".yaml")
config_prep_write(config, out)