Learn R Programming

autoslider.core (version 0.2.5)

read_spec: Read yaml spec file

Description

Read yaml spec file and split according to filter lists

Usage

read_spec(spec_file = "spec.yml", metadata = NULL)

Value

An object of class `spec` which is a `list` where each element corresponds to one output, e.g. `t_dm_IT`.

Arguments

spec_file

`character`. Path to a yaml spec file

metadata

Metadata of study

Author

- Liming Li (`Lil128`) - Thomas Neitmann (`neitmant`) - Joe Zhu

Examples

Run this code
spec_file <- system.file("spec.yml", package = "autoslider.core")

## Take a look at the 'raw' content of the spec file
cat(readLines(spec_file)[1:24], sep = "\n")

## This is how it looks once read into R
spec <- read_spec(spec_file)
spec[1:3]

Run the code above in your browser using DataLab