Skip to content

Commit

Permalink
functions.R edited online with Bitbucket
Browse files Browse the repository at this point in the history
  • Loading branch information
PelzKo committed Sep 9, 2021
1 parent 1f2a649 commit 6afba3c
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions R/functions.R
Original file line number Diff line number Diff line change
Expand Up @@ -693,3 +693,19 @@ buildSignatureMatrixMAST <- function(scdata,

return(Sig)
}

#' A wrapper function whether to suppress messages
#'
#' @param verbose Whether to produce an output on the console.
#'
#' @return A function which will suppress messages or not, depending on the verbose parameter
#'
verbose_wrapper <- function(verbose) {
return(function(method) {
if (!verbose) {
suppressMessages(method)
} else {
method
}
})
}

0 comments on commit 6afba3c

Please sign in to comment.