R/smudge_warn.R

Defines functions smudge_warn

#' @title smudge_warn
#'
#' @description
#' \code{smudge_warn} a function that is used to report all the wanrning messages
#' like this I will be able to easily redirect the waring message to file as well
#'
#' @export

smudge_warn <- function(.filename, ...){
    write(paste(..., sep = '\t'), stderr())
    write(paste(..., sep = '\t'), paste0(.filename, "_warnings.txt"), append = T)
}
PauloMoraMartinez/Smudgeplot documentation built on April 5, 2022, 12:03 a.m.