HTML_functions: HTML helper functions

Description Usage Arguments Details Value Note

Description

These functions can become handy to generate proper HTML code.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
br()

p(..., attrs = NULL)

span(..., attrs = NULL)

div(..., attrs = NULL)

th(..., attrs = NULL)

tr(..., attrs = NULL)

td(..., attrs = NULL)

table_(..., attrs = NULL)

a(..., attrs = NULL)

tbody(..., attrs = NULL)

strong(..., attrs = NULL)

em(..., attrs = NULL)

img(attrs = NULL, embed = TRUE)

Arguments

...

Child nodes of this node.

attrs

A named list of attributes.

embed

Logical, whether the specified src file should be ecoded using base64encode to ensure they are embedded into the HTML file. This keeps your presentation from breaking if you move it somewhere else. It will work with ordinary file paths as well, as long as all files remain in place.

Details

If you want more control over the output of questions and answers, you can include HTML code, given it is in the form of XiMpLe.node objects.

You can of course use XMLNode, but it's abit quicker and more intuitive to rely on these helpers.

Value

An object of class XiMpLe.node.

Note

: Please note that table_ ends with an underscore, to not confuse it with the table function.


unDocUMeantIt/iRcotofun documentation built on May 3, 2019, 2:24 p.m.