addFinalizerToLast          package:R.utils          R Documentation

_M_o_d_i_f_i_e_s ._L_a_s_t() _t_o _c_a_l_l '_f_i_n_a_l_i_z_e_S_e_s_s_i_o_n()

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

     Modifies .Last() to call 'finalizeSession() _before_ calling the
     default '.Last()' function.

     Note that '.Last()' is _not_ guaranteed to be called when the R
     session finished.  For instance, the user may quit R by calling
     'quit(runLast=FALSE)' or run R in batch mode.

     Note that this function is called when the R.utils package is
     loaded.

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

     ## Default S3 method:
     addFinalizerToLast(...)

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

     ...: Not used.

_V_a_l_u_e:

     Returns (invisibly) 'TRUE' if '.Last()' was modified, otherwise
     'FALSE'.

_A_u_t_h_o_r(_s):

     Henrik Bengtsson (<URL: http://www.braju.com/R/>)

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

     'onSessionExit'().

