R/printTrace.R

Defines functions `printTrace`

`printTrace` <-
function(mystr, sFile, InfoLevel, bAppend=TRUE, bStop=FALSE){
    if (InfoLevel > 0) {
        if (length(sFile) > 0) {
            cat(mystr, file=sFile, sep="\n", fill=TRUE, labels=NULL, append=bAppend)
        } else cat(mystr, sep="\n");
        flush.console();
        if (bStop) stop(mystr);
    }
}

Try the vbmp package in your browser

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

vbmp documentation built on Nov. 8, 2020, 5:38 p.m.