set_pb: Set and update progress bars

Description Usage Arguments Value Examples

View source: R/tools.R

Description

Set and update progress bars

Usage

1
2
3
set_pb(.max)

add_pb(.pb, .value = 1)

Arguments

.max

Integer. Maximal value of the progress bar.

.pb

Progress bar object from set_pb.

.value

Numeric. Value to add to the progress bar at each step.

Value

An updated progress bar.

Examples

1
2
3
4
5
6
pb <- immunarch:::set_pb(100)
immunarch:::add_pb(pb, 25)
immunarch:::add_pb(pb, 25)
immunarch:::add_pb(pb, 25)
immunarch:::add_pb(pb, 25)
close(pb)

abrown435/immunarch-test documentation built on July 29, 2020, 12:04 a.m.