Learn R Programming

SPB (version 1.0)

summary,simple.progress.bar-method: Summary method for simple progress bars

Description

Summary method for simple progress bars

Usage

# S4 method for simple.progress.bar
summary(object)

Value

A summary including:

message

The message printed before the bar (if any)

status

The advancement status of the bar

max

The length of the bar

percentage

The advancement status of the bar in percentage points

The summary is also printed to the console as a kable (if knitr is installed). Otherwise it prints out as a normal table.

Arguments

object

A simple progress bar

Author

Telarico, Fabio Ashtar

Examples

Run this code

# Example without custom message
pb<-create_pb(length=10, print=FALSE)
summary(pb)

# Example with a custom message
pb<-create_pb(length=43, print=FALSE,custom.message='Custom pb')
summary(pb)

# Example with a custom message and an updated value
pb<-create_pb(length=11, print=FALSE,custom.message='A new value:')
pb<-update_pb(pb,6)
summary(pb)

Run the code above in your browser using DataLab