Skip to content

Instantly share code, notes, and snippets.

@nassimhaddad
Created January 15, 2013 16:44
Show Gist options
  • Save nassimhaddad/4540002 to your computer and use it in GitHub Desktop.
Save nassimhaddad/4540002 to your computer and use it in GitHub Desktop.
example code for a progress bar in R
pb <- txtProgressBar(style = 3, min = 0, max = length(files_list))
i <- 0
for (file in files_list){
i <- i+1
setTxtProgressBar(pb, i)
do_computations()
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment