notice: Generate a Notice

View source: R/general.R

noticeR Documentation

Generate a Notice

Description

Generate a notice to be sent to output

Usage

notice(..., printnotices = NULL)

Arguments

...

contents of the notice, will be pasted together

printnotices

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

Details

This function is very similar to 'message'

Value

None.

Author(s)

Werner A. Stahel

See Also

message

Examples

  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)

plgraphics documentation built on Oct. 19, 2023, 3 p.m.