scat: Display debugging text

Description Usage Arguments Value Author(s) See Also Examples

Description

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

Usage

1

Arguments

...

Arguments passed to cat

Value

NULL (invisibly)

Author(s)

Gregory R. Warnes greg@warnes.net

See Also

cat

Examples

1
2
3
4
5
6
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 documentation built on May 2, 2019, 4:52 p.m.

Related to scat in gtools...