Description Usage Format Fields Public methods Examples
Simple R6 class allowing to include enumeration objects in documents. The document formats must allow for R-code-junks to be executed, as e.g. with rmarkdown or rnoweb documents. The enumeration objects are initialized at the beginning of the document and whenever an enumeration object is needed an inline R-statement is used to generate the required enumeration instance.
1 |
An object of class R6ClassGenerator
of length 24.
count
enumeration count
new()
Instantiation of enumeration object
setCount(pnCount)
setter for count field
getCount()
getter for count field
incrCount()
increment count by one
incrCountByN(pnIncr)
increment count by pnIncr
out()
output count
1 2 3 4 5 6 | # generate a new enumeration object
en <- rmddochelper::R6ClassEnum$new()
# increment number
en$incrCount()
# output of count
en$out()
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.