R/unix/setpb.R

setpb <-
function(pb, value)
{
    if (dopb()) {
        control <- getOption("pboptions")
        rval <- switch(control$type, 
            txt = setTxtProgressBar(pb, value), 
            tk = tcltk::setTkProgressBar(pb, value, label=control$label))
    } else rval <- NULL
    invisible(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.