stacomiR (version 0.5.3)

progress_bar: Progress bar using a gtkdialog, the progress bar is assigned in envir_stacomi This progress bar has a button to close.

Description

Progress bar using a gtkdialog, the progress bar is assigned in envir_stacomi This progress bar has a button to close.

Usage

progress_bar(title, progress_text, width = 400, height = 50, pulse = TRUE)

Arguments

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

Value

nothing

Examples

Run this code
# 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)
# }

Run the code above in your browser using DataCamp Workspace