report_section: Constructor for report_section objects

Description Usage Arguments Value Examples

View source: R/report_section_class.R

Description

Creates a new report_section object and populates the slots.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
report_section(
  object = NULL,
  markdown = system.file(package = "structReport", "templates/default_object.Rmd",
    mustWork = TRUE),
  subsection = NULL,
  ...
)

## S4 method for signature 'report_section'
length(x)

Arguments

markdown

path and filename of markdown template to use for the section

models

the model to use for this report section

Value

a struct_class object

the number of sections in a struct_report

Examples

1
2
3
# a section with 2 subsections
MS = report_section*(report_section()+report_section())
length(MS) # 2

computational-metabolomics/structReport documentation built on Nov. 12, 2020, 2:33 a.m.