Editing Communication and Social Networks (Fall 2023)/R Lab 1
From CommunityData
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 30: | Line 30: | ||
# Search for "quarto" and install the quarto extension | # Search for "quarto" and install the quarto extension | ||
# Search for "R" and install the R extension | # Search for "R" and install the R extension | ||
# | # Click File > Open Folder - Navigate to the COM_411_Labs folder | ||
# Click on the lab_1_quarto.qmd file, and it should open in the main window of VSCode | # Click on the lab_1_quarto.qmd file, and it should open in the main window of VSCode | ||
# | # Try clicking "Render" at the top right. It will probably not work. This is because there are a lot of R packages that you need to install. | ||
# Click the "R Interactive" shell at the bottom right, and paste the following: | |||
#* <code>install.packages(c("rmarkdown","tidyverse","ggraph","tidygraph","igraphdata"))</code> | #* <code>install.packages(c("rmarkdown","tidyverse","ggraph","tidygraph","igraphdata"))</code> | ||
#* If it asks if you want to install from source, you can type "no" | #* 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. | #* This will show a bunch of crazy messages for a while. Hopefully, you can ignore them. | ||
# Click "Render" | # Click "Render" again, and hopefully it works this time. | ||
# 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. | # 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: | # If that doesn't work, then you probably have to install tinytex. Click the Quarto Preview terminal (in the bottom right) and type: |