R6ClassCount | R Documentation |
Simple counter of objects inside a document. Objects that associated to such a counter can be sections, tables, diagrams and others. Specialised counter classes for the different document objects can be derived from this more generic counter class. Specific document objects that are associated to a counter are generated using the prefix field in this class.
R6ClassCount$new()
new()
Instantiation of a new R6ClassCount object
out(ps_prefix, ps_suffix, pn_count)
Write count value with given prefix and suffix
increment_count()
Increment value of count by 1
set_prefix(ps_prefix)
Setter for field prefix
get_prefix()
Getter for field prefix
set_suffix(ps_suffix)
Setter for field suffix
get_suffix()
Getter for field suffix
set_count(pn_count)
Setter for field count
get_count()
Getter for field count
prefix
Text shown before counter, specifies the document object type
suffix
Test shown after the counter, corresponds to a description
count
current value of the counter
prefix
Text shown before counter, specifies the document object type
suffix
Test shown after the counter, corresponds to a description
count
current value of the counter
new()
R6ClassCount$new()
out()
R6ClassCount$out(ps_prefix = NULL, ps_suffix = NULL, pn_count = NULL)
increment_count()
R6ClassCount$increment_count()
set_prefix()
R6ClassCount$set_prefix(ps_prefix)
get_prefix()
R6ClassCount$get_prefix()
set_suffix()
R6ClassCount$set_suffix(ps_suffix)
get_suffix()
R6ClassCount$get_suffix()
set_count()
R6ClassCount$set_count(pn_count)
get_count()
R6ClassCount$get_count()
clone()
The objects of this class are cloneable with this method.
R6ClassCount$clone(deep = FALSE)
deep
Whether to make a deep clone.
cnt <- R6ClassCount$new()
cat(cnt$out(ps_prefix = "## Task", ps_suffix="Variance components", pn_count = 1))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.