moveInSearchPath           package:R.utils           R Documentation

_M_o_v_e_s _a _e_n_v_i_r_o_n_m_e_n_t _i_n _t_h_e _s_e_a_r_c_h _p_a_t_h _t_o _a_n_o_t_h_e_r _p_o_s_i_t_i_o_n

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

     Moves a environment in the search path to another position.

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

     ## Default S3 method:
     moveInSearchPath(from, to, where=c("before", "after"), ...)

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

    from: An 'integer' specifying the position of the environment to be
          moved, or a 'character' specifying the name of the
          environment to be moved.

      to: The destination position like the 'from' argument.

   where: A 'character' string specify where in relation to the
          destination position the enviroment should be moved.

     ...: Not used.

_D_e_t_a_i_l_s:

     It is not possible to move the first environment in the search
     path, i.e. the so called global environment.

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

     Returns (invisibly) the name of the environment moved, if it was
     moved, otherwise 'NULL'.

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

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

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

     'search'().

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

        # Make package 'utils' come behind 'datasets' in the search path
        moveInSearchPath("package:utils", "package:datasets", where="after")
      

