powered by
Generate a notice to be sent to output
notice(..., printnotices = NULL)
None.
contents of the notice, will be pasted together
logical: Should the notice be printed? Default is the respective pl option.
Werner A. Stahel
This function is very similar to 'message'
message
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