message                 package:base                 R Documentation

_D_i_a_g_n_o_s_t_i_c _M_e_s_s_a_g_e_s

_D_e_s_c_r_i_p_t_i_o_n:

     Generate a diagnostic message from its arguments.

_U_s_a_g_e:

     message(..., domain = NULL)
     suppressMessages(expr)

_A_r_g_u_m_e_n_t_s:

     ...: character vectors (which are pasted together with no
          separator), a condition object, or 'NULL'.

  domain: see 'gettext'. If 'NA', messages will not be translated.

    expr: expression to evaluate.

_D_e_t_a_i_l_s:

     'message' is used for generating "simple" diagnostic messages
     which are neither warnings nor errors, but nevertheless
     represented as conditions.

     While the message is being processed, a 'muffleMessage' restart is
     available.

     'suppressMessages' evaluates its expression in a context that
     ignores all "simple" diagnostic messages.

_S_e_e _A_l_s_o:

     'warning' and 'stop' for generating warnings and errors;
     'conditions' for condition handling and recovery.

     'gettext' for the mechanisms for the automated translation of
     text.

_E_x_a_m_p_l_e_s:

     message("ABC", "DEF")
     suppressMessages(message("ABC"))

