available.views(repos = NULL, ...)
install.views(views, coreOnly = FALSE, repos = NULL, ...)
update.views(views, coreOnly = FALSE, repos = NULL, lib.loc = NULL, filters = NULL, ...)
download.views(views, destdir, coreOnly = FALSE, repos = NULL, ...)## S3 method for class 'ctv':
print(x, packagelist = TRUE, \dots)
## S3 method for class 'ctvlist':
print(x, packagelist = FALSE, \dots)
views can also be an object of class "ctvlist" (as returned
by available.viewsviews)getOption("repos")
is tried and otherwise getOption("CRAN") is used.available.packages, e.g., for filtering with respect to
operating system type or free and open-source software license.install.packages or
download.packages respectively."ctv" or "ctvlist" respectively.available.views returns an object of class "ctvlist" of the
available task views whose elements are of class "ctv".
install.views and update.views have no return value.install.views queries the file 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.available.views returns the names of the task views currently
available in the file CRAN.views (which still works and provides the same functionality).
update.views queries which packages from a view are not yet
installed (using installed.packages) and which of the installed
packages are older than the packages available (using available.packages).
It subsequently installs only the packages that are not current or not
installed yet.
download.views works exactly as install.views except that it
download.packages instead of install.packages.
For a closer description of the arguments see also install.packages.
install.packages## query names of CRAN task views available
available.views()
## install Econometrics view
install.views("Econometrics")
## only with core packages
install.views("Econometrics", coreOnly = TRUE)
## update Econometrics view
update.views("Econometrics")Run the code above in your browser using DataLab