This help topic is for R version 1.5.0. For the current version of R, try https://stat.ethz.ch/R-manual/R-patched/library/base/html/warnings.html
warnings {base}R Documentation

Print Warning Messages

Description

warnings prints the top-level variable last.warning in a pleasing form.

Usage

warnings(...)

Arguments

...

arguments to be passed to cat.

See Also

warning.

Examples

ow <- options("warn")
for(w in -1:1) {
   options(warn = w); cat("\n warn =",w,"\n")
   for(i in 1:3) { cat(i,"..\n"); m <- matrix(1:7, 3,4) }
}
warnings()
options(ow) # reset

[Package base version 1.5.0 ]