home *** CD-ROM | disk | FTP | other *** search
-
- _F_u_n_c_t_i_o_n _E_x_i_t _C_o_d_e
-
- on.exit(expr)
-
- _A_r_g_u_m_e_n_t_s:
-
- expr : an expression to be executed.
-
- _D_e_s_c_r_i_p_t_i_o_n:
-
- on.exit records the expression given as its argument as
- needing to be executed when then current function exits
- (either naturally or as the result of an error). This
- is useful for resetting graphical parameters or per-
- forming other cleanup actions.
-
- _E_x_a_m_p_l_e_s:
-
- opar <- par(mai=c(1,1,1,1))
- on.exit(par(opar))
-
-