Skip to content

MansMeg/msgProgressBar

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

msgProgressBar

Build Status Coverage Status rstudio mirror downloads cran version

msgProgressBar is an equivalent to use txtProgressBar but uses message()instead of cat to print out the progress bar. This is good to use in R packages or in functions where one would like to supresse the progressbar using suppressMessages().

Installation

Currently the package is not on CRAN. Please install directly from github:

devtools::install_github("MansMeg/msgProgressBar")

Usage

> test_bar <- function(i = 10){
+   bar <- msgProgressBar::msgProgressBar(i)
+   for(j in 1:i){
+     bar$increment()
+     Sys.sleep(4/i)
+     }
+   }
> test_bar(100)
|                   25%                    50%                    75%                   |
|=======================================================================================|

Author: Måns Magnusson

You are welcome to contact:

About

A statusbar for R using message()

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages