getTemp                package:svMisc                R Documentation

_G_e_t _a _t_e_m_p_o_r_a_r_y _v_a_r_i_a_b_l_e _f_r_o_m _t_h_e _T_e_m_p_E_n_v _e_n_v_i_r_o_n_m_e_n_t

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

     The function gets a variable from TempEnv, an environment
     dedicated to temporary variables.

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

         getTemp(x, default = NULL, mode = "any")

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

       x: The name of the variable 

 default: The default value to return, in case the variable does not
          exist 

    mode: The mode of the variable (if the variable exists, but is not
          of correct mode, nothing is retrieved). Use 'mode = "any"'
          (default value) to retrieve the variable whatever its mode. 

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

     The content of the variable, or the default value if the variable
     is not found in TempEnv.

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

     Philippe Grosjean <phgrosjean@sciviews.org>

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

     'TempEnv', 'assignTemp', 'rmTemp', 'existsTemp'

_E_x_a_m_p_l_e_s:

             assignTemp("test", TRUE)
             # Retrieve this variable
             getTemp("test")
             # Retrieve a non existing variable (returns default value)
             getTemp("nonexistant", default = "default value")

