statnet installation

Current version

The current version of statnet was released 2014-2-10. Minor updates and bugfixes of all the statnet component packages have been released during January 2014 in preparation for the Sunbelt workshops. Please check CRAN for the most recent versions of the statnet software or run update.packages() in your R terminal.

statnet Components

statnet is a suite of software packages that implement a range of network modeling tools. Installing the package statnet from CRAN will automatically install all of the main packages in the statnet suite (see the "Depends" list here). Alternatively, users can install individual packages like ergm if desired, and only the dependencies associated with that package will be installed.

Installation instructions

statnet will run in any environment that supports R , including Windows, Linux and Macintosh machines.

Obtaining the current version of statnet involves two main steps: downloading R, and then installing the statnet package within R. If you already have the current version of R you can skip Step 1 of the instructions. Those with older versions of R are asked to follow Step 1 in order to update, as both access to and functionality of statnet may otherwise be impaired.


Step 1a. Downloading R (currently version 3.0.2):

  1. Go to, and select Mirrors from the left-hand menu.
  2. Select a location near you.
  3. From the "Download and Install R" section, select the link for your operating system. Follow the instructions on the relevant page. Note that you need to download only the base distribution, not the contributed packages.
  4. Once you have downloaded the installation file, follow the instructions for installation.

Step 1b. FOR WORKSHOP ATTENDEES: Downloading Rstudio (currently version 0.98):

  1. Go to
  2. Download Rstudio desktop.
  3. Once you have downloaded the installation file, follow the instructions for installation.

Step 2. Downloading and installing statnet:

  1. Open R
  2. Install statnet At the R cursor >, type:
  3. Open the statnet libraries At the R cursor >, type:

Now, and in the future, you can update statnet at any point. To do this, at the R cursor, type:


Follow the directions; feel free to say no to any optional packages, although we recommend saying yes. The first choice provided is to install all the required and optional packages.

(Note: If you receive an error when attempting to download statnet this may indicate that your installation of R is out of date. However, you can still manually install the primary packages used for these workshops -- network, ergm, relevent and sna separately if you wish. Just follow the instructions for supplemental packages, below, substituting the names of the desired statnet packages where relevant.)

Step 3. Installing supplemental packages:

Open R, if it is not already open At the R cursor >, type:


This installs several libraries (rgl, coda, numDeriv, yacca, and informR), which are optional but highly recommended (and used by some of the workshop functions).

Instructions for installing the ndtv package and its non-R dependencies are on the ndtvInstallation page.

Step 4. Join the statnet Community:

We have set up a message board for statnet users to:

  • get help from the statnet development team (and other users)
  • post questions and ideas to other users
  • be informed about statnetupdates
  • learn about bugs (and bug fixes)

Information about joining the list is available at

Once you have joined the list, you can post your questions and comments to statnet_help at

A full history of all messages posted to this list is available at

Step 5. Getting Started With ERGMs - a tutorial:

If you are not planning on attending one of the statnet workshops, a good way to get started is to work through Steve Goodreau's excellent step-by-step statnet tutorial.

There is also extensive help here on the statnet wiki

Last modified 16 months ago Last modified on 02/10/14 20:33:36