rnb.add.reference {RnBeads} | R Documentation

## rnb.add.reference

### Description

Adds a reference item to the given report.

### Usage

    rnb.add.reference(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)

Yassen Assenov

### See Also

`rnb.get.reference` for adding citations in the report's text; `Report` for other functions adding contents to an HTML report

### Examples

    report <- createReport("example.html", "Example", init.configuration = TRUE)
    txt.reference <- c("Bird A. ", "<i>Nucleic Acids Res.</i> <b>8</b> (1980)")
    report <- rnb.add.reference(report, txt.reference)
    txt <- c("This was shown in ", rnb.get.reference(report, txt.reference), ".")
    rnb.add.paragraph(report, txt)

[Package RnBeads version 1.10.8 Index]