R/scat.R

# $Id: scat.R 625 2005-06-09 14:20:30Z nj7w $

# cat to stdout and immediately flush
scat <- function(...)
  {
    DEBUG <- options()$DEBUG
    if( !is.null(DEBUG) && DEBUG)
      {
        cat("### ", file=stderr())
        cat(..., file=stderr())
        cat(" ###\n", file=stderr())
        flush(stderr())
      }
    invisible(NULL)
  }
dpastoor/SASxport documentation built on May 15, 2019, 10:46 a.m.