ctv-client {ctv} | R Documentation |
Client-side tools for installing CRAN task views.
install.views(views, coreOnly = FALSE, repos = NULL, dependencies = TRUE, ...) CRAN.views(repos = NULL, ...) ## S3 method for class 'ctv': print(x, packagelist = TRUE, ...) ## S3 method for class 'ctvlist': print(x, packagelist = FALSE, ...)
views |
character vector with the short names of the task views whose
associated packages should be downloaded and installed. Alternatively,
views can also be an object of class "ctvlist" (as returned
by CRAN.views ) or an object of class "ctv" (i.e., an element
of a "ctvlist" ). |
coreOnly |
logical. Should all packages or only core packages be installed?
(recycled to the same length as views ) |
repos |
character, the base URL of the repository. By default getOption("repos")
is tried and otherwise getOption("CRAN") is used. |
dependencies |
logical. Should uninstalled packages on which the packages associated with the task views depends (or suggests/imports) also be installed? |
... |
further arguments passed to install.packages . |
x |
an object of class "ctv" or "ctvlist" respectively. |
packagelist |
logical. Should the packagelist also be printed? |
install.views
queries the file ‘Views.rds’ located at
the ‘src/contrib’ directory of ‘repos’ and then simply calls
install.packages
to install the packages associated with the
view specified. For each view it can be specified whether all packages or
only the core packages should be installed.
CRAN.views
returns the names of the task views currently available in
the file ‘Views.rds’.
For a closer description of the arguments see als install.packages
.
CRAN.views
returns an object of class "ctvlist"
of the
available task views whose elements are of class "ctv"
.
install.views
has no return value.
## Not run: ## query names of CRAN task views available CRAN.views() ## install Econometrics view install.views("Econometrics") ## only with core packages install.views("Econometrics", coreOnly = TRUE) ## End(Not run)