progressMsg | R Documentation |
progress message in the R console.
setProgressMsg(min = 0, max = 1)
progressMsg(pm, value, round = 0)
min, max |
(finite) numeric values for the extremes of the progress message. Must have |
pm |
list created by setProgressMsg |
value |
value for the progress message. |
round |
integer indicating the number of decimal places for the percentage completed. Defaults to 0. |
setProgressMsg
sets up a list with variables used and updated by progressMsg
a list
Hans Gerritsen
See also txtProgressBar
## Not run:
pm <- setProgressMsg(0,500)
for(i in 1:500) {
pm<- progressMsg(pm,i)
Sys.sleep(0.01)
}
rm(pm)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.