Last.value               package:base               R Documentation

_V_a_l_u_e _o_f _L_a_s_t _E_v_a_l_u_a_t_e_d _E_x_p_r_e_s_s_i_o_n

_D_e_s_c_r_i_p_t_i_o_n:

     The value of the internal evaluation of a top-level R expression
     is always assigned to '.Last.value' (in 'package:base') before
     further processing (e.g., printing).

_U_s_a_g_e:

     .Last.value

_D_e_t_a_i_l_s:

     The value of a top-level assignment _is_ put in '.Last.value',
     unlike S.

     Do not assign to '.Last.value' in the workspace, because this will
     always mask the object of the same name in 'package:base'.

_S_e_e _A_l_s_o:

     'eval'

_E_x_a_m_p_l_e_s:

     ## These will not work correctly from example(),
     ## but they will in make check or if pasted in,
     ## as example() does not run them at the top level
     gamma(1:15)          # think of some intensive calculation...
     fac14 <- .Last.value # keep them

     library("eda") # returns invisibly
     .Last.value    # shows what library(.) above returned

