R/silenceFun.R

Defines functions silenceFun

Documented in silenceFun

#' Silence Function
#'
#' Helper function to silence a function
#'
#'@param x some function
#'@return nothing
#'
#'
#'
#'
silenceFun <- function(x) {
  sink(tempfile())
  on.exit(sink())
  invisible(force(x))
}
Lyrohk/cruncher documentation built on Dec. 17, 2021, 1:17 a.m.