BIO 263 R-STUDIO 2026/2027 | R PROGRAMMING TUTORIAL & BIOLOGY DATA
ANALYSIS GUIDE
In which of the four workspace panes should you type your code? - Correct answer✅✅ the source
window
Why is it important to type code in your answer from the previous question instead of directly in the
console? - Correct answer✅✅ We can edit and save our script on our computer hard drive this way
In which of the R Studio panes will error messages appear when something is wrong with our code? -
Correct answer✅✅ the console window
What is the purpose of setting a working directory? - Correct answer✅✅ This tells R Studio where ot
look for data files
Which is done in every single r-program session:
I. Run library() on any packages being used in this session
II. Run install.packages() on any packages being used in this session.
III. Open an existing script file in your working directory OR make a new script file and save to your
working directory
IV. Re-arrange the panels in R Studio - Correct answer✅✅ I and III only
purpose of library(tidyverse) - Correct answer✅✅ To make the 'tidyverse' package active in my
current R Studio session
When do you need to run library(tidyverse) if you need to use functions contained within that package?
- Correct answer✅✅ At the beginning of every, single, solitary Rsession
In the code below, which parts are functions and which parts are arguments?
data -< read_csv('datafile.csv', header=T) - Correct answer✅✅ read_csv is a function, 'datafile.csv' and
header=T are arguments
, What is the general purpose of using hashtags while coding? - Correct answer✅✅ To allow writing
comments on code so we can remember what each line of code does
What are "chunks" in R Markdown documents? - Correct answer✅✅ They are where we should write
out all the code we want to run
For each of the following actions, choose the appropriate category for when you need to take the action
upon a new R session. - Correct answer✅✅ After Saving, but Before Starting Coding
Save the R Markdown document in your working directory - Correct answer✅✅ Very Beginning
Name the R Markdown document something informative - Correct answer✅✅ Very Beginning
Type code in R Markdown chunks - Correct answer✅✅ While Coding
In the Set up chunk, enter the library() code for all packages needed for this R session - Correct
answer✅✅ After Saving, but Before Starting Coding
Open a new R Markdown document using the icon of the white piece of paper and green plus sign -
Correct answer✅✅ Very Beginning
If using an existing R Markdown document, save the file in your working directory and open from there -
Correct answer✅✅ Very Beginning
Use a hashtag to leave comments about code so you can remember what it does in later R sessions -
Correct answer✅✅ While Coding
Delete everything in the R Markdown document EXCEPT THE SET UP CHUNK - Correct answer✅✅
After Saving, but before Starting Coding
ANALYSIS GUIDE
In which of the four workspace panes should you type your code? - Correct answer✅✅ the source
window
Why is it important to type code in your answer from the previous question instead of directly in the
console? - Correct answer✅✅ We can edit and save our script on our computer hard drive this way
In which of the R Studio panes will error messages appear when something is wrong with our code? -
Correct answer✅✅ the console window
What is the purpose of setting a working directory? - Correct answer✅✅ This tells R Studio where ot
look for data files
Which is done in every single r-program session:
I. Run library() on any packages being used in this session
II. Run install.packages() on any packages being used in this session.
III. Open an existing script file in your working directory OR make a new script file and save to your
working directory
IV. Re-arrange the panels in R Studio - Correct answer✅✅ I and III only
purpose of library(tidyverse) - Correct answer✅✅ To make the 'tidyverse' package active in my
current R Studio session
When do you need to run library(tidyverse) if you need to use functions contained within that package?
- Correct answer✅✅ At the beginning of every, single, solitary Rsession
In the code below, which parts are functions and which parts are arguments?
data -< read_csv('datafile.csv', header=T) - Correct answer✅✅ read_csv is a function, 'datafile.csv' and
header=T are arguments
, What is the general purpose of using hashtags while coding? - Correct answer✅✅ To allow writing
comments on code so we can remember what each line of code does
What are "chunks" in R Markdown documents? - Correct answer✅✅ They are where we should write
out all the code we want to run
For each of the following actions, choose the appropriate category for when you need to take the action
upon a new R session. - Correct answer✅✅ After Saving, but Before Starting Coding
Save the R Markdown document in your working directory - Correct answer✅✅ Very Beginning
Name the R Markdown document something informative - Correct answer✅✅ Very Beginning
Type code in R Markdown chunks - Correct answer✅✅ While Coding
In the Set up chunk, enter the library() code for all packages needed for this R session - Correct
answer✅✅ After Saving, but Before Starting Coding
Open a new R Markdown document using the icon of the white piece of paper and green plus sign -
Correct answer✅✅ Very Beginning
If using an existing R Markdown document, save the file in your working directory and open from there -
Correct answer✅✅ Very Beginning
Use a hashtag to leave comments about code so you can remember what it does in later R sessions -
Correct answer✅✅ While Coding
Delete everything in the R Markdown document EXCEPT THE SET UP CHUNK - Correct answer✅✅
After Saving, but before Starting Coding