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 / on.exit < prev    next >
Encoding:
Text File  |  1997-04-23  |  569 b   |  23 lines

  1.     
  2.     _F_u_n_c_t_i_o_n _E_x_i_t _C_o_d_e
  3.     
  4.          on.exit(expr)
  5.     
  6.     _A_r_g_u_m_e_n_t_s:
  7.     
  8.             expr : an expression to be executed.
  9.     
  10.     _D_e_s_c_r_i_p_t_i_o_n:
  11.     
  12.          on.exit records the expression given as its argument as
  13.          needing to be executed when then current function exits
  14.          (either naturally or as the result of an error).  This
  15.          is useful for resetting graphical parameters or per-
  16.          forming other cleanup actions.
  17.     
  18.     _E_x_a_m_p_l_e_s:
  19.     
  20.          opar <- par(mai=c(1,1,1,1))
  21.          on.exit(par(opar))
  22.     
  23.