\HeaderA{setRepositories}{Select Package Repositories}{setRepositories}
\keyword{utilities}{setRepositories}
\begin{Description}\relax
Interact with the user to choose the package repositories to be used.
\end{Description}
\begin{Usage}
\begin{verbatim}
setRepositories(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 a text list in the console.
\end{ldescription}
\end{Arguments}
\begin{Details}\relax
The default list of known repositories is stored in the file
\file{R\_HOME/etc/repositories}.
That file can be edited for a site, or a user can have a personal copy
in \file{HOME/.R/repositories} which will take precedence.

The items that are preselected are those that are currently in
\code{options("repos")} plus those marked as default in the
list of known repositories.
\end{Details}
\begin{Value}
This function is invoked mainly for its side effect of updating
\code{options("repos")}.  It returns (invisibly) the previous
\code{repos} options setting (as a \code{\LinkA{list}{list}} with component
\code{repos}) or \code{\LinkA{NULL}{NULL}} if no changes were applied.
\end{Value}
\begin{SeeAlso}\relax
\code{\LinkA{chooseCRANmirror}{chooseCRANmirror}}, \code{\LinkA{install.packages}{install.packages}}.
\end{SeeAlso}

