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"), ind = NULL)

_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.

     ind: 'NULL' or a vector of integer indices, which have the same
          effect as if they were entered at the prompt for
          'graphics=FALSE'.

_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'.

