setRepositories            package:utils            R Documentation

_S_e_l_e_c_t _P_a_c_k_a_g_e _R_e_p_o_s_i_t_o_r_i_e_s

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

     Interact with the user to choose the package repositories to be
     used.

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

     setRepositories(graphics = getOption("menu.graphics"))

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

graphics: Logical. If true and 'tcltk' and an X server are available,
          use a Tk widget, or if under the AQUA interface use a MacOS X
          widget, otherwise use a text list in the console.

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

     The default list of known repositories is stored in the file
     'R_HOME/etc/repositories'. That file can be edited for a site, or
     a user can have a personal copy in 'HOME/.R/repositories' which
     will take precedence.

     The items that are preselected are those that are currently in
     'options("repos")' plus those marked as default in the list of
     known repositories.

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

     This function is invoked mainly for its side effect of updating
     'options("repos")'.  It returns (invisibly) the previous 'repos'
     options setting (as a 'list' with component 'repos') or 'NULL' if
     no changes were applied.

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

     'chooseCRANmirror', 'install.packages'.

