Download R source file

              # Welcome to Duke Network Analysis Center's Social Networks and Health!
# To configure your machine properly for our lab sessions, please run 
# the code below. If you're new to R, run the code by selecting it (Ctrl+A);
# then, press (Ctrl+Enter) to run it. 

install.packages(c("statnet", "ggnetwork", "EpiModel", "netdiffuseR", "sna", 
                   "lattice", "plyr", "dplyr", "tidyr", "ggplot2", "magrittr",
                   "mosaic", "tidyverse"))
install.packages("RSiena", repos="")

# Now you should have all of the necessary R packages for the program!