setRepositories
Select Package Repositories
Description
Selects and sets the default package repositories.
Usage
setRepositories(graphics = getOption("menu.graphics"), ind = NULL,
addURLs = character())
Arguments
graphics |
this argument is currently ignored.
|
ind |
an integer vector specifying the indices of the package repositories to set as the default.
If NULL, then the user is shown a menu of known repositories to select from.
|
addURLs |
additional URLs to set as default package repositories.
|
Details
A list of known repositories is stored in a CSV file called "repositories".
If such a file exists in the directory ~/.TERR, then it is used.
Otherwise the list in R.home("etc") is used.
Value
returns the prior value of getOption("repos").
Side Effects
The value of getOption("repos") is changed. Subsequent calls
to install.packages and any other functions that look for a
package repository examine the URLs listed there.
See Also
Examples
## Not run:
getOption("repos")
setRepositories()
getOption("repos")
## End(Not run)