Uncategorized

Instructions for using R and RStudio in the Sage serverBIOL 1020-W – Lab 2 2026

Instructions for using R and RStudio in the Sage serverBIOL 1020-W – Lab 2 2026.

We will be running R and RStudio online using a hub accessible with your Trent account. You do not need to download R or RStudio to your computer.

  1. Navigate tohttps://sage.trentu.ca/hub/spawn in your browser.
  2. Click on ‘R Studio with R 4.4.3, Quarto, and Geospatial’. Then click ‘Start’.
  3. Login in with your Trent student credentials. (Just use your username, not your whole e mail address).
  4. Click on ‘New’ near the top right corner. Click on ‘RStudio’.
  5. You will see three windows open in the RStudio environment (one on the left and two on the right). In the bottom-right one, click ‘Upload’, ‘Choose File’. Navigate to where you saved the DEMO zipped folder from Blackboard. Click on it (BIOL 1020-W DEMO files.zip). Click ‘Ok’. Two files will appear in the bottom right window. (If you only see one, refresh your page).
  6. In the bottom right window, click on the code file (the one that ends in .qmd). It will open in a new window in the upper left. (The .csv file is the data; you don’t need to open it)
  7. You can now run the provided code to do the data analysis. This is covered in video in the Lab 2 folder on Blackboard.
  8. Make sure you click ‘Render’ to make your output into a nice .html document. You won’t need this for the demo data, but you will need to get your figure from the rendered html when you analyze the actual data (see below) in order to get your figure captions.

For the ‘ANALYSIS’:

When you do the analysis on the real data, you will follow more-or-less the procedure you did with the demo (but with ‘ANALYZE THESE FILES.zip). However, there are few extra things to do:

  1. Write your name as the ‘author:’ where it says ‘STUDENT NAME HERE’
  2. Delete the two chunks that have analysis for the parameter you are NOT using (either traffic volume if you are using tree size or vice versa) See the ‘label;’ in each chunk.
  3. Add a figure caption. Replace the text ‘STUDENTS, WRITE CAPTION HERE’ with a figure number and a descriptive caption.
  4. Render your .qmd (button with a blue arrow in top-left window). Snip/screen shot your figure from there so you get your figure caption.