Description Active bindings Methods
An abstract R6 class providing means to log strings in a list of entries.
An abstract R6 class providing means to log strings in a list of entries.
Length
Current length of the log
new()
log The logged list
maxEntries Maximum allowed entries
Constructor
RollLogger$new(MaxEntries = 25)
MaxEntries
Maximum allowed entries; default is 25
'invisible(self)'
Log()
Stores strings in the log.
RollLogger$Log(ToLog)
ToLog
a string that represents the last roll or any other event.
'invisible(self)'
AsHtml()
Returns the log content as HTML string
RollLogger$AsHtml(Reverse = TRUE)
Reverse
if 'TRUE' the recent entries are shown on top.
HTML output
print()
Prints the log
RollLogger$print(...)
...
Arguments passed over to 'cat()'
'invisible(self)'
clone()
The objects of this class are cloneable with this method.
RollLogger$clone(deep = FALSE)
deep
Whether to make a deep clone.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.