report_Screening: Insert a Screening Section

Description Usage Arguments Value Examples

View source: R/report_Screening.R

Description

Insert a spectrum screening section in RMarkdown reports. Use this function within a code chunk and make sure to set the chunk option results = 'asis'.

Usage

1
report_Screening(files, meta = NULL, settings = NULL, delim)

Arguments

files

character (required): file path or directory where the spectra files are stored.

meta

list (required): A named list with information on the following elements given in .meta. Consider using .meta as a constructor.

settings

list (required): A named list with information on the following elements given in .settings. Consider using .settings as a constructor.

delim

character (required): Keyword specifying the delimiter insterted before the section. Usually "<br>" or "<hr>" for HTML and "\\newpage" for PDF reports.

Value

Text output via cat.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
## Not run: 
report_Screening(files = "~/PATH/TO/FILES/",
                 meta = .meta(person = "Max Mustermann",
                              date = "Yesterday",
                              file_suffix = c("_a", "_b"),
                              file_path = "~/ESR/"),
                 settings = .settings(device = "Bruker ESP300-E",
                                      mod_amp = 0.485,
                                      receiver_gain = 2,
                                      freq = 9.628,
                                      conv_time = 20.48,
                                      time_const = 163.84,
                                      sweep_time = 20.972,
                                      power = 25.3,
                                      center_field = 3430,
                                      sweep_width = 40,
                                      scans = c(10, 20, 30, 40)),
                 delim = "\\newpage")

## End(Not run)

tzerk/ESReport documentation built on May 3, 2019, 2:04 p.m.