home *** CD-ROM | disk | FTP | other *** search
/ Big Green CD 8 / BGCD_8_Dev.iso / NEXTSTEP / UNIX / Educational / R-0.49-MI / R-0.49-I / help / base / invisible < prev    next >
Encoding:
Text File  |  1997-04-23  |  584 b   |  20 lines

  1.     
  2.     _C_h_a_n_g_e _t_h_e _P_r_i_n_t _M_o_d_e _t_o _I_n_v_i_s_i_b_l_e
  3.     
  4.          invisible(expr)
  5.     
  6.     _V_a_l_u_e:
  7.     
  8.          This function returns a (temporarily) invisible copy of
  9.          its argument.  This can be useful when it is desired to
  10.          have functions return values which can be assigned, but
  11.          which do not print when they are not assigned.
  12.     
  13.     _E_x_a_m_p_l_e_s:
  14.     
  15.          # These functions both return their argument
  16.          # The value returned by the second does not print
  17.          f1 <- function(x) x
  18.          f2 <- function(x) invisible(x)
  19.     
  20.