Editing Communication and Social Networks (Fall 2022)/Scholar Setup

From CommunityData

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.

Latest revision Your text
Line 9: Line 9:
=== Step 1: Log in ===
=== Step 1: Log in ===


# Go to https://gateway.scholar.rcac.purdue.edu/pun/sys/dashboard
Log into the RStudio instance on Scholar, using your BoilerKey credentials. The direct URL is https://rstudio.scholar.rcac.purdue.edu/.
# Log in with your BoilerKey
# Click on Interactive Apps: R Studio Server
# For the options select "scholar", "4.05", 1 hour, 1 core (you can change this to up to 4 hours later when you're actually using it for work)
# Click Launch
# When the job starts, click "Connect to R Studio Server"


=== Step 2: Install packages ===
You should be set up automatically to have access, but if it doesn't work let me know on Discord.


# Go back to the console tab
=== Step 2: Add the labs ===
# Run the following:
    install.packages("dplyr")
    install.packages("ggraph")


# Note: If you run into problems try the following:
#* Stop R (Session: Terminate R)
#* Click on the Terminal tab (right next to "Console" in the bottom right of RStudio)
#* Copy the following and right-click to paste it into the terminal:
    rm -rf ~/R/x86_64-pc-linux-gnu-library/4.0/*
=== Step 3: Load the Labs ===


1. Download all of the labs [https://jeremydfoote.com/Communication-and-Social-Networks/r_lab_assignments/r_labs.zip by clicking this link].
1. Download all of the labs [https://jeremydfoote.com/Communication-and-Social-Networks/r_lab_assignments/r_labs.zip by clicking this link].
Line 37: Line 22:
3. In that bottom right pane click "Upload", and upload the ZIP file. It should extract all of the labs for the class.
3. In that bottom right pane click "Upload", and upload the ZIP file. It should extract all of the labs for the class.


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


* 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.
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".
* It is fairly likely that you will get a bug when knitting about not having pandoc installed. If so, you will need to run the following in the Terminal tab:
    module load anaconda
* Then restart R (Session : Restart R)


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!
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!
Please note that all contributions to CommunityData are considered to be released under the Attribution-Share Alike 3.0 Unported (see CommunityData:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!

To protect the wiki against automated edit spam, we kindly ask you to solve the following CAPTCHA:

Cancel Editing help (opens in new window)