Communication and Social Networks (Fall 2022)/Scholar Setup

R is a statistical programming language. People use it for lots of things, but in this class we will focus on using it to analyze and visualize social networks.

To help you to learn how to do this, we will go through a number of labs. The first ones will be really basic, but by the end you will be able to create complex, compelling visualizations from network data.

In the past, I have had students use R on their own computers. You are welcome to do that, if you would like. But I have also requested access for our class on the Scholar cluster run by Purdue research computing. Basically, there are a bunch of high-powered computers that our class has access to, and you can do your work there.

In this tutorial, you will learn how to log in to Scholar, and will get set up so you are ready for the labs.

Step 1: Log in
Log into the RStudio instance on Scholar, using your BoilerKey credentials. The direct URL is https://rstudio.scholar.rcac.purdue.edu/.

You should be set up automatically to have access, but if it doesn't work let me know on Discord.

Step 2: Add the labs
1. Download all of the labs by clicking this link.

2. Go back into RStudio; in the bottom right pane click "Files", then "New Folder" and create a new folder for our class - something like "COM 411 R Labs".

3. In that bottom left pane click "Upload", and upload the ZIP file. It should extract all of the labs for the class.

Step 3: Make sure it works!
In the bottom right pane, click Files, then click on lab_1_r_markdown.Rmd

A weird looking file should show up in the top left pane.

In the top left pane, click "Knit". Some text should appear in the bottom left panel, and after 20 seconds or so, you should see a new window appear with a document titled "Markdown and Network Plotting".

We'll talk about what all of this means soon, but for now, if that document appears, then you have done everything right and you're ready to go!