RcppThread::ProgressBar class

A progress bar showing progress in percent.

Prints to the R console in a thread safe manner using Rcout (an instance of RcppThread::Rprinter).

Base classes

class ProgressPrinter
Abstract class for printing progress.

Constructors, destructors, conversion operators

ProgressBar(size_t numIt, size_t printEvery)

Private functions

void printProgress() virtual

Function documentation

RcppThread::ProgressBar::ProgressBar(size_t numIt, size_t printEvery)

Parameters
numIt total number of iterations.
printEvery how regularly to print updates (in seconds).

constructs a progress bar.

void RcppThread::ProgressBar::printProgress() virtual private

prints a progress bar to the R console (+ an estimate of remaining time).