setRepositories {utils} | R Documentation |
Interact with the user to choose the package repositories to be used.
setRepositories(graphics = getOption("menu.graphics"), ind = NULL)
graphics |
Logical. If true, use a graphical list: on Windows or
Mac OS X GUI use a list box, and on a Unix-alike if tcltk and an X
server are available, use Tk widget. Otherwise use a text
menu . |
ind |
NULL or a vector of integer indices, which have the
same effect as if they were entered at the prompt for
graphics=FALSE . |
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.
A Bioconductor mirror can be selected by setting
options("BioC_mirror")
: the default value is
"http://www.bioconductor.org".
The items that are preselected are those that are currently in
options("repos")
plus those marked as default in the
list of known repositories.
The list of repositories offered depends on the setting of option
"pkgType"
as some repositories only offer a subset of types
(e.g. only source packages or not Mac OS X binary packages).
Further, for binary packages some repositories (notably R-Forge) only
offer packages for the current or recent versions of R.
This function requires the R session to be interactive unless
ind
is supplied.
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.
chooseCRANmirror
, install.packages
.