\HeaderA{chooseCRANmirror}{Select a CRAN Mirror}{chooseCRANmirror}
\keyword{utilities}{chooseCRANmirror}
\begin{Description}\relax
Interact with the user to choose a CRAN mirror.
\end{Description}
\begin{Usage}
\begin{verbatim}
chooseCRANmirror(graphics = getOption("menu.graphics"))
\end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\code{graphics}] Logical.
If true and \pkg{tcltk} and an X server are available, use a Tk
widget, or if under the AQUA interface use a MacOS X widget,
otherwise use \code{\LinkA{menu}{menu}}.
\end{ldescription}
\end{Arguments}
\begin{Details}\relax
A list of mirrors is stored in file
\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 \code{\LinkA{contrib.url}{contrib.url}} if it finds the
initial dummy value of \code{\LinkA{options}{options}("repos")}.
\end{Details}
\begin{Value}
None.  This function is invoked for its side effect of updating
\code{options("repos")}
\end{Value}
\begin{SeeAlso}\relax
\code{\LinkA{setRepositories}{setRepositories}}, \code{\LinkA{contrib.url}{contrib.url}}.
\end{SeeAlso}

