Learn R Programming

gtools (version 3.9.5)

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(...)

Value

NULL (invisibly)

Arguments

...

Arguments passed to cat

Author

Gregory R. Warnes greg@warnes.net

See Also

Examples

Run this code

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.")

Run the code above in your browser using DataLab