wiki:Installation

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

For the 2015 Sunbelt workshop we will be installing the statnet metapackage, ergm.count and ergm.ego from the statnet public repository (i.e., not from CRAN).

All of the other packages will be installed from CRAN. If you have trouble installing latentnet from CRAN, you can install it too from the statnet public repository.

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.

  • IF YOU ARE PLANNING TO ATTEND A SUNBELT WORKSHOP YOU SHOULD ALSO INSTALL R-STUDIO. We use R-studio for teaching.

Step 1a. Downloading R:

  1. Go to http://cran.r-project.org/
  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 http://www.rstudio.com/products/rstudio/download/.
  2. Download Rstudio desktop.
  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:
    install.packages('statnet',repos='http://statnet.org',dependencies=TRUE)
    
  3. Open the statnet libraries At the R cursor >, type:
    library("statnet")
    

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

update.packages("statnet")

Or, if our public repository has a more recent version you want to install, type:

update.packages(repos='http://statnet.org')

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 https://mailman.u.washington.edu/mailman/listinfo/statnet_help

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

A full history of all messages posted to this list is available at https://mailman.u.washington.edu/mailman/private/statnet_help/

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 7 weeks ago Last modified on 06/19/15 22:34:36