Description Usage Arguments Details Value Author(s) See Also Examples
View source: R/Report-methods.R
Generates HTML code for a list in the specified report.
1 | rnb.add.list(report, txt, type = "u")
|
report |
Report to write the text to. |
txt |
Non-empty list of items to be written. An attribute named |
type |
List type to be used for the list and/or its sublists in case the attribute |
There are two ways to specify a list type: (1) setting a value for the attribute type
of the list, or
(2) using the function's parameter type
. The value of the function's parameter is used only for lists
and sublists that do not contain an attribute named type
. The following types are supported:
"o"
Ordered list using arabic numbers - 1
, 2
, 3
, etc.
"u"
Unordered list using bullet points.
Note that every list type must be a one-element character
vector containing one of the codes listed
above. Specifying any other value for list type results in an error.
The modified report, invisibly.
Yassen Assenov
Report
for other functions adding contents to an HTML report
1 2 3 | report <- createReport("example.html", "Example", init.configuration = TRUE)
recipe <- list("Sift flour in a bowl", "Add sugar and mix", "Add milk and mix")
rnb.add.list(report, recipe, type="o")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.