Exercises to Accompany TeachingWithR Workshop
Matthew Beckman & Justin Post
June 25, 2021
Part 1. RStudio IDE Scavenger Hunt
1.1 RStudio GUI
Task: Search the menus in your RStudio IDE to locate where each of
the following can be accomplished:
- Restart your R Session
- Create a new “R Markdown” file
- Install
lubridate
packages (with dependencies if needed)
- search the Help to learn about the “head” function
- What types of data sources can be imported using the RStudio GUI
Solution
- RStudio >> Session
- RStudio >> File >> New File >> R Markdown
- RStudio >> Packages >> Install >> [type the
package name in the search bar]
- RStudio >> Help >> [type “head” in search bar]
- RStudio >> File >> Import Dataset
1.2 Configuration Details Handy for Teaching
Task: Visit “RStudio >> Tools >> Global Options” and
locate the following:
- Pane Layout
- “Rainbow parenthesis”
- “Show margin” (set to 80)
- “Highlight selected line”
- “Provide R style diagnostics (e.g., whitespace)”
- “Show whitespace characters”
Solution
- Tools >> Global Options >> Pane Layout (in left-side
navigation)
- Tools >> Global Options >> Code >> Display
- Tools >> Global Options >> Code >> Display
- Tools >> Global Options >> Code >> Display
- Tools >> Global Options >> Code >> Diagnostics
- Tools >> Global Options >> Code >> Display