statnet installation

Technically statnet is a suite of R packages that perform a wide range of data management, visualization, descriptive and statistical network analysis tasks. The number of packages in the suite is continuing to grow, providing access to new methodology as we develop it. There are two basic approaches to installing the software:

  1. Via the statnet R meta-package: This provides a simple one-step approach to installing the core packages in the statnet suite, and their dependencies. It is a convenient approach, especially for beginners.
  1. Install the individual packages directly, which will automatically install their dependencies. This is useful if you know you only need one package, and necessary for the packages not loaded by statnet.

You should pick the approach best suited to your needs.

Current versions

All of the packages will be installed from CRAN.

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:

  1. Go to
  2. 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.
  3. Once you have downloaded the installation file, follow the instructions for installation.

Step 1b. FOR WORKSHOP ATTENDEES: Downloading Rstudio :

  1. Go to
  2. Download the free version of RStudio Desktop appropriate for your platform.
  3. Once you have downloaded the installation file, follow the instructions for installation.

Step 2. Downloading and installing statnet:

The most current version of the statnet package is found in the statnet public repository.

  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:


Or, if our public repository has a more recent version you want to install, 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.)

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

Step 3. 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 4. 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 2 years ago Last modified on 04/03/16 21:07:25