Learn R Programming

plgraphics (version 1.2)

notice: Generate a Notice

Description

Generate a notice to be sent to output

Usage

notice(..., printnotices = NULL)

Value

None.

Arguments

...

contents of the notice, will be pasted together

printnotices

logical: Should the notice be printed? Default is the respective pl option.

Author

Werner A. Stahel

Details

This function is very similar to 'message'

See Also

Examples

Run this code
  ff <- function(x) {
    if (length(x)==0)  {
      notice("ff: argument 'x' is NULL. I return 0")
      return(0)
    }
    1/x
  }
  ff(3)
  ff(NULL)
  oo <- ploptions(printnotices=FALSE)
  ff(NULL)

Run the code above in your browser using DataLab