Skip to contents

Scaffolds a single-table config entry from a raw file. Part of the config_prep_* family for bootstrapping a new schema.yaml.

Usage

config_prep_raw(path, name, descr, pat, type = "txt", v = "latest", ...)

Arguments

path

(character(1))
File path.

name

(character(1))
Table name (key in tables:).

descr

(character(1))
Table description.

pat

(character(1))
File pattern (regex).

type

(character(1))
File type (ftype).

v

(character(1))
Version string to assign to all columns (default "latest").

...

Passed on to readr::read_delim.

Value

A named list matching the tables: entry format for schema.yaml.

Examples

path <- system.file("extdata", "tool1/latest/sampleA.tool1.table1.tsv", package = "nemo")
name <- "table1"
descr <- "Table1 from Tool1."
pat <- "\\.tool1\\.table1\\.tsv$"
l <- config_prep_raw(path, name, descr, pat)