Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

useRepos

Sets package repositories


Description

Sets package repositories.

Usage

useRepos(repos=NULL, where=c("before", "after", "replace"), unique=TRUE, fallback=TRUE,
  ...)

Arguments

repos

A character vector of repositories to use. If NULL, nothing is replaced.

where

A character string specifying how to add them to the current set of repositories.

unique

If TRUE, only unique repositories are set.

fallback

If TRUE, any remaining non-specified repository value of format '...@' (e.g. '@CRAN@') than could not be recovered by other means, will be assigned to a pre-defined known value, if possible. If so, then an informative warning is given.

...

Not used.

Value

Returns a list with element 'repos' reflecting options("repos") as the options where prior to calling this function.

Author(s)

Henrik Bengtsson

See Also


R.utils

Various Programming Utilities

v2.10.1
LGPL (>= 2.1)
Authors
Henrik Bengtsson [aut, cre, cph]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.