R/unix/getpb.R

getpb <-
function(pb)
{
    if (dopb()) {
        progress.bar <- getOption("pboptions")$type
        rval <- switch(progress.bar, 
            txt = getTxtProgressBar(pb), 
            tk = tcltk::getTkProgressBar(pb))
    } else rval <- NULL
    rval
}

Try the pbapply package in your browser

Any scripts or data that you put into this service are public.

pbapply documentation built on May 2, 2019, 5:30 p.m.