You need to install and test R and RStudio before the workshop. The installation process is simple on all major platforms, and mostly consists of downloading and running the installers appropriate to your platform. Please contact the instructors if you run into difficulties so we can help you show up with a computer properly set up for the workshop.
Put your cursor in the left pane labelled “Console”, which is where you interact with the live R process. Create a simple object with code like x <- 2 * 4
(followed by enter or return). In the “Environment” pane, to the right of the Console, you should see an entry for “x” with appropriate value (in this case, 8).
Then inspect the x
object by typing x
in the Console followed by enter or return. You should see the value 8 printed to the screen.
Finally, check that plotting works. In the console, type plot(cars)
. If you see a scatterplot appear in the “Plots” pane to the lower right, you are good to go.
R is an extensible system and many people share useful code they have developed as a package via the Comprehensive R Archive Network CRAN, Bioconductor, or personal GitHub repositories.
To install a package in RStudio:
Please install the following packages and their dependencies for use in this workshop:
tidyverse
. In this case, you need to separately install each package within the tidyverse. This includes: readr
, tibble
, dplyr
, tidyr
, stringr
, ggplot2
, purr
, forcats
The above is sufficient preparation for this workship but here are some links if you are interested in reading a bit further.