Not logged in
Talk
Contributions
Create account
Log in
Navigation
Main page
About
People
Publications
Teaching
Resources
Research Blog
Wiki Functions
Recent changes
Help
Licensing
Page
Discussion
Edit
View history
Editing
Communication and Social Networks (Spring 2024)/R Lab 1
(section)
From CommunityData
Jump to:
navigation
,
search
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.
Anti-spam check. Do
not
fill this in!
=== Try to run the lab === # Create a folder on your computer called COM_411_Labs # Right-click on [https://github.com/jdfoote/com_and_social_networks_labs/raw/main/lab_1_r_markdown.qmd this link to Lab 1] and save it into the COM_411_Labs folder # Open VSCode # Click on the Extensions icon on the left (it's 3 attached squares and one floating square) # Search for "quarto" and install the quarto extension # Search for "R" and install the R extension # In VSCode, Click File > Open Folder - Navigate to the COM_411_Labs folder that you created earlier # Click on the lab_1_quarto.qmd file, and it should open in the main window of VSCode # Click Terminal > New Terminal. This will open a window at the bottom of VSCode. In that window type <code>R</code> and push enter. This will start an "R Interactive shell" # In the R shell, paste the following: #* <code>install.packages(c("rmarkdown","tidyverse","ggraph","tidygraph","igraphdata"))</code> #* It will ask you what CRAN mirror you'd like to use. You can choose something in the US. #* If it asks if you want to install from source, you can type "no" #* This will show a bunch of crazy messages for a while. You can probably ignore them. # Click "Preview" at the top right, and hopefully it works! # Read the document, make the changes that you are asked to, and then try clicking the down arrow by Render, and "Render as PDF". I would like you to turn in all of your assignments as PDFs. # If that doesn't work, then you probably have to install tinytex. Click the Quarto Preview terminal (in the bottom right) and type: #* <code>quarto install tinytex</code> # Try rendering a PDF again # Upload the PDF to Brightspace! You did it!! If things aren't working then ask a neighbor for help.
Summary:
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)
Tools
What links here
Related changes
Special pages
Page information