withRepos

0th

Percentile

Evaluate an R expression with repositories set temporarily

Evaluate an R expression with repositories set temporarily.

Keywords
programming, IO
Usage
withRepos(expr, repos="[[mainstream]]", ..., envir=parent.frame())
Arguments
expr
The R expression to be evaluated.
repos
A character vector of repositories to use.
...
Additional arguments passed to useRepos().
envir
The environment in which the expression should be evaluated.
Value

  • Returns the results of the expression evaluated.

See Also

Internally, eval() is used to evaluate the expression. See also options() and install.packages.

Aliases
  • withRepos
Examples
# Install from BioC related repositories only
  withRepos(install.packages("edgeR"), repos="[[BioC]]")

  # Install from CRAN or BioC related repositories only
  withRepos(install.packages("edgeR"), repos=c("CRAN", "[[BioC]]"))

  # Install from mainstream repositories only (same as previous)
  withRepos(install.packages("edgeR"), repos="[[mainstream]]")

  # Install from R-Forge and mainstream repositories only
  withRepos(install.packages("R.utils"), repos="[[R-Forge]]")
Documentation reproduced from package R.utils, version 1.32.4, License: LGPL (>= 2.1)

Community examples

Looks like there are no examples yet.