progress_bar {stacomiR} | R Documentation |
Progress bar using a gtkdialog, the progress bar is assigned in envir_stacomi This progress bar has a button to close.
progress_bar(title, progress_text, width = 400, height = 50, pulse = TRUE)
title |
The title of the bar |
progress_text |
The text to display for progression |
width |
Width of the progress bar |
height |
Height of the progress bar |
pulse |
Do you want the widget to pulse |
nothing
The name of the progress bar is progres
, it will be assigned in envir_stacomi,
it contains a progress bar widget named progress bar, also assigned in envir_stacomi See example for use.
cedric.briand
## Not run: progress_bar(title="Trial",progress_text="progress text") fraction_progressed=seq(0,1,length.out=50) progress_bar<-get("progress_bar",envir_stacomi) for(i in fraction_progressed){ Sys.sleep(0.1) progress_bar$setText(sprintf("%d%% progression",round(100*i))) progress_bar$setFraction(i) } dispose(progres) ## End(Not run)