addReportReference: addReportReference

Description Usage Arguments Value Author(s) See Also Examples

View source: R/Report-methods.R

Description

Adds a reference item to the given report.

Usage

1
addReportReference(report, txt)

Arguments

report

Report to add a reference item to.

txt

Text of the reference in the form of a non-empty character vector. The elements of this vector are concatenated without a separator.

Value

The modified report.

Author(s)

adapted by Fabian Mueller from RnBeads code by Yassen Assenov

See Also

getReportReference for adding citations in the report's text; Report for other functions adding contents to an HTML report

Examples

1
2
3
4
5
report <- createReport("example.html", "Example", init.configuration = TRUE)
txt.reference <- c("Bird A. ", "<i>Nucleic Acids Res.</i> <b>8</b> (1980)")
report <- addReportReference(report, txt.reference)
txt <- c("This was shown in ", getReportReference(report, txt.reference), ".")
addReportParagraph(report, txt)

demuellae/muReportR documentation built on Jan. 20, 2020, 5:12 a.m.