chooseCRANmirror            package:utils            R Documentation

_S_e_l_e_c_t _a _C_R_A_N _M_i_r_r_o_r

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

     Interact with the user to choose a CRAN mirror.

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

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

     getCRANmirrors(all = FALSE, local.only = FALSE)

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

     all: Logical, get all known mirrors or only the ones flagged as
          OK.

local.only: Logical, try to get most recent list from CRAN or use file
          on local disk only.

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

     A list of mirrors is stored in file 'R_HOME/doc/CRAN_mirrors.csv',
     but first an on-line list of current mirrors is consulted, and the
     file copy used only if the on-line list is inaccessible.

     This function was originally written to support a Windows GUI menu
     item, but is also called by 'contrib.url' if it finds the initial
     dummy value of 'options("repos")'.

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

     None for 'chooseCRANmirror()', this function is invoked for its
     side effect of updating 'options("repos")'.

     'getCRANmirrors()' returns a data frame with mirror information.

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

     'setRepositories', 'contrib.url'.

