Dear participants of the Intro to R workshop,
I hope you are as excited as me to get started with R. Please read this document to get all infos concerning the workshop.
Where and When
- Thursday, 27th February from 2-4 p.m. (90 minutes workshop, 30 minute questions)
- Room: M4.02 in the public library
Prerequisites
- No pre-knowledge needed
- However, please install the latest versions of R and RStudio. See Installing R and R Studio below!
Workshop Process
This is a hands-on workhop. Me and Jon will talk about some stuff, and then we will let you try things out.
Instructions courtesy of Data carpentries, see here for full instruction and linux install.
If you already have R and RStudio installed:
Open RStudio, and click on “Help” > “Check for updates”. If a new version is available, quit RStudio, and download the latest version for RStudio. To check which version of R you are using, start RStudio and the first thing that appears in the console indicates the version of R you are running. Alternatively, you can type sessionInfo()
, which will also display which version of R you are running. Go on the CRAN website and check whether a more recent version is available. If so, please download and install it. You can check here for more information on how to remove old versions from your system if you wish to do so.
If you don’t have R and RStudio installed:
Download R from the CRAN website.
Run the .exe
file that was just downloaded
Go to the RStudio download page
Under Installers select RStudio x.yy.zzz - Windows Vista/7/8/10 (where x, y, and z represent version numbers)
Double click the file to install it
Once it’s installed, open RStudio to make sure it works and you don’t get any error messages.
If you already have R and RStudio installed:
Open RStudio, and click on “Help” > “Check for updates”. If a new version is available, quit RStudio, and download the latest version for RStudio.
To check the version of R you are using, start RStudio and the first thing that appears on the terminal indicates the version of R you are running. Alternatively, you can type sessionInfo()
, which will also display which version of R you are running. Go on the CRAN website and check whether a more recent version is available. If so, please download and install it.
If you don’t have R and RStudio installed:
Download R from the CRAN website.
Select the .pkg
file for the latest R version
Once downloaded double click on the file to install R.
To dowload Rstudio go to the RStudio download page
Under Installers select RStudio x.yy.zzz - Mac OS X 10.6+ (64-bit) (where x, y, and z represent version numbers)
Double click the file to install RStudio
Once it’s installed, open RStudio to make sure it works and you don’t get any error messages.
The first thing you need to do is install R and R studio (instructions above) then you want to download all the files for this workshop from this github page to your computer. To do that click on the green Clone or download button to the right side of your screen and select Download ZIP. Unzip this folder and put it somewhere you can easily access. This folder contains the follow files:
Input
A folder containing datasets that we will import into Ririsdata.csv
PlantGrowth.csv
RUsersGroup_BeginnerSession_2020.R
The script you will open in R and use in today's workshopRUsersGroup_BeginnerSession_2020.pdf
A handy pdf with the workshop script and code outputRUsersGroup_BeginnerSession_2020.Rmd
A markdown file which you wont need to use.
To start, open the workshop script in R (RUsersGroup_BeginnerSession_2020.R). It should open automatically in R.
Have fun!