Chapter 2 R & R Studio

2.1 Resources

2.2 Exercises

  • install R on your computer
    • if you can’t, use the cloud: posit.cloud [log in with Google and your @sheffield.ac.uk account]
  • open this script
    • review line by line [as a pair exercise]
  • know how to install and load a library of functions (“a package”)
    • install the swirl package

2.3 Checklist

To complete this class you should be able to do the following :

  • have R and RStudio installed and working correctly

  • create a new project

  • identify the console

    • here you can enter a command directly (e.g. “2 + 2”)
  • identify the file window

  • save a script as a .R file

  • run a single line of the script by pressing CTRL + ENTER

  • run the whole script

  • identify the environment window

  • identify the files/plots/etc window