rapport.meta: Header Metadata

Description Usage Arguments Details Value See Also

View source: R/template.R

Description

Displays summary of template metadata stored in a header section. This part of template header consists of several YAML key: value pairs, which contain some basic information about the template, just much like the DESCRIPTION file in R packages does.

Usage

1
rapport.meta(fp, fields = NULL, use.header = FALSE, trim.white = TRUE)

Arguments

fp

a template file pointer (see rapport:::rapport.read for details)

fields

a list of named lists containing key-value pairs of field titles and corresponding regexes

use.header

a logical value indicating if the character vector provided in fp argument contains only the header data (not the whole template)

trim.white

a logical value indicating if the extra spaces should removed from header fields before extraction

Details

Current implementation supports following fields:

As of version 0.5, dataRequired field is deprecated. rapport function will automatically detect if the template requires a dataset based on the presence of standalone inputs.

Value

a named list with template metadata

See Also

rapport.inputs rapport.info


rapport documentation built on April 12, 2021, 1:06 a.m.