Progress | R Documentation |
A class for informing user about the progress of a process.
This class displays progress of a process to user, and sends notifications of this progress to observers too.
new()
Initializer.
Progress$new(biodb = NULL, msg, total = NA_integer_)
biodb
A BiodbMain instance that will be used to notify observers of progress.
msg
The message to display to the user.
total
The total number of elements to process or NA if unknown.
Nothing.
increment()
Increment progress.
Progress$increment()
Nothing.
clone()
The objects of this class are cloneable with this method.
Progress$clone(deep = FALSE)
deep
Whether to make a deep clone.
# Create an instance prg <- biodb::Progress$new(msg='Processing data.', total=10L) # Processing for (i in seq_len(10)) { print("Doing something.") prg$increment() }
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.