Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

scat

Display debugging text


Description

If getOption('DEBUG')==TRUE, write text to STDOUT and flush so that the text is immediately displayed. Otherwise, do nothing.

Usage

scat(...)

Arguments

...

Arguments passed to cat

Value

NULL (invisibly)

Author(s)

Gregory R. Warnes greg@warnes.net

See Also

Examples

options(DEBUG=NULL) # makee sure DEBUG isn't set
scat("Not displayed")

options(DEBUG=TRUE)
scat("This will be displayed immediately (even in R BATCH output \n")
scat("files), provided options()$DEBUG is TRUE.")

gtools

Various R Programming Tools

v3.8.2
GPL-2
Authors
Gregory R. Warnes, Ben Bolker, and Thomas Lumley
Initial release
2020-03-23

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.