R/vmsg.R

Defines functions vmsg

vmsg <- function(...) {
    verbose <- getOption("QDNAseq::verbose", TRUE)
    if (is.na(verbose)) {
        args <- list(...)
        appendLF <- TRUE
        if ("appendLF" %in% names(args)) {
            appendLF <- args[["appendLF"]]
            args[["appendLF"]] <- NULL
        }
        cat(unlist(args), sep="")
        if (appendLF)
            cat("\n")
    } else if (verbose) {
        message(...)
    }
}
ccagc/QDNAseq documentation built on Feb. 2, 2023, 12:56 p.m.