setRepositories(graphics = getOption("menu.graphics"), ind = NULL, addURLs = character())
menu
.NULL
or a vector of integer indices, which have the
same effect as if they were entered at the prompt for
graphics = FALSE
. A Bioconductor mirror can be selected by setting
options("BioC_mirror")
, e.g.\ifelse{latex}{\out{~}}{ } via
chooseBioCmirror
--- the default value is
"https://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 OS X binary packages).
Further, for binary packages some repositories (notably R-Forge) only
offer packages for the current or recent versions of R.
(Type "both"
is equivalent to "source"
.)
Repository CRAN is treated specially: the value is taken from
the current setting of getOption("repos")
if this has an
element "CRAN"
: this ensures mirror selection is sticky.
This function requires the R session to be interactive unless
ind
is supplied.
chooseCRANmirror
, chooseBioCmirror
,
install.packages
.