\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 = TRUE)
\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
The list of mirrors is stored in file \file{R\_HOME/doc/CRAN\_mirrors.csv}.

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}

