Getting Statnet

advertisement
Getting Statnet
To install statnet
1. Open R
2. At the cursor type:
install.packages("updatestatnet",contriburl=http://csde.washington.edu/statnet)
If you do not have administrator privileges on the machine you are trying to install R on, then
this may fail with a message something like
"cannot open file 'C:\PROGRA~1\R\R-..', reason 'Permission denied"
In this case, you can still install R into your own private R library space by setting your
environment variables. To do this in Windows:
1. Right click on "My Computer" and choose "Properties"
2. Click the "Advanced" tab
3. Click on the "Environment Variables..." button
4. Click on the "New..." button
5. In the "Variable Name:" box type:
R_LIBS
6. In the "Variable Value:" box type the full path to the folder where you want your R
library. For example, H:\Rlibrary. Don't forget to create this folder.
7. Click OK at each level (three times) until all the boxes go away.
To use statnet
1. Open R
2. At the cursor type:
library(updatestatnet)
To update statnet
1. Open R
2. At the cursor type:
library(updatestatnet)
3. Choose the USA (WA) CRAN mirror
4. Answer y to all the questions
5. Ignore warning messages about not being able to update help files
Download