

   warning {base}                               R Documentation

   WWaarrnniinngg MMeessssaaggeess

   DDeessccrriippttiioonn::

        `warning' generates a warning message that corresponds
        to its argument and the expression or function from
        which it was called.

   UUssaaggee::

        warning(message)

   AArrgguummeennttss::

    message: character string (of length 1) or `NULL'.

   DDeettaaiillss::

        The result depends on the value of `options("warn")'.
        If `warn' is negative warnings are ignored; if it is
        zero they are stored and printed after the top-level
        function has completed; if it is one they are printed
        as they occur and if it is 2 (or larger) warnings are
        turned into errors.

        If `warn' is zero (the default), a top-level variable
        `last.warning' is created.  It contains the warnings
        which can be printed via a call to `warnings'.

   SSeeee AAllssoo::

        `stop' for fatal errors, `warnings', and
        `options(warn=..)'.

   EExxaammpplleess::

