Learn R Programming

statnet (version 2.5)

update_statnet: Updates or Installs the Component Packages of statnet

Description

Updates or, if necessary, installs the component packages of statnet. Many of the packages are on CRAN. The rest are on the statnet webpage (http://statnet.org). This command can be used immediately after installing statnet from CRAN to install the component packages. It also can be used at any subsequent point to update the packages to their latest versions. Consult the webpage for more information.

Usage

update_statnet(object, ...,
            contriburl = "http://statnet.org",
            repos = getOption("repos"), type = getOption("pkgType"),
            ask=TRUE)

Arguments

object
an optional vector of the names of the packages to install. By default it updates or installs all the component packages of statnet.
...
Additional arguments (currently none).
contriburl
URL of the contrib section of the repositories. By default this is the URL of the statnet webpage (http://statnet.org). Overrides argument repos. #ifdef unix Can be NULL to install from local
repos
character vector, the base URL(s) of the repositories to use, i.e., the URL of the CRAN master such as "http://cran.r-project.org" or its Statlib mirror, "http://lib.stat.cmu.edu/R/CRAN". #ifdef unix Can be
type
character, indicating the type of statnet package to download and install. Possible values are "base" (for packages essential to statnet), "recommended" (for packages needed for a significant par
ask
logical indicating whether to ask user which packages ins statnet to update or install. The default is ask = TRUE. If ask = FALSE then all packages are updated and/or installed.

Value

Warning

This function may fail in rare circumstances. If so, send email to the statnet Users Group at statnet_help@u.washington.edu. See the link on http://statnet.org for how to join it.

Details

While this function has a number of options, few users will change the defaults and they are not intended to be altered except in rare circumstances.

The main function is to install a functional set of statnet packages. First a list of all packages found in the default library (the first directory in .libPaths()) is created and compared with those available at the statnet repositories (CRAN and http://statnet.org). If ask = TRUE (the default for "recommended" and "optional", but not for "base") packages with a newer version are reported and for each one the user can specify if it should be updated.

See Also

install.packages.

Examples

Run this code
update_statnet()

Run the code above in your browser using DataLab