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
git --version
[Enter]. This should populate the window with information on your version of git such asgit version 2.20.1.windows.1
make-4.1-2-without-guile-w32-bin.zip
, though the most recent version number may be different.c/Program Files/Git/mingw64/
make --version
[Enter] in GitBash. This should populate the window with information on your version of Make such asGNU Make 4.2.1
Built for Windows32
Copyright (C) 1988-2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL verison 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
The native Terminal in the Mac OS is Linux-based and therefore, can be used in this workshop. You can access it under Applications > Utilities > Terminal.app
git --version
[Enter]. This should populate the window with information on your version of git such asgit version 2.18.0
xcode-select --install
[Enter]
make --version
[Enter] in your Terminal. This should populate the window with information on your version of Make such asGNU Make 3.81
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
This program built for i386-apple-darwin11.3.0
The above is enough preparation but here are some links if you are interested in reading a bit further.