class: center, middle, inverse, title-slide # > 💻 📦
> Installing R on your computer ###
Danielle Navarro
--- layout: true <div class="my-footer"> <!-- <span> <a href="https://robust-tools.djnavarro.net" target="_blank">robust-tools.djnavarro.net</a> </span> --> </div> --- class: middle, inverse ## What are we going to cover? - Installing R and RStudio - Installing and loading packages --- class: middle, inverse ## What is the assumed knowledge? - This is an introductory unit - Very little experience with R is needed - Previous experience using RStudio Cloud helps --- class: middle, inverse ## Where can I find the resources? - These slides: [slides.djnavarro.net/installing-r](https://slides.djnavarro.net/installing-r) - YouTube videos: [youtube.djnavarro.net/installing-r](https://youtube.djnavarro.net/installing-r) --- class: middle, inverse background-image: url("img/james-pond-Z0uzZSM5i4M-unsplash.jpg") background-size: cover .pull-left-narrow[ .huge-blue-number[1] ] .pull-right-wide[ <br><br><br> <br><br><br> <br><br><br> <br> .larger[.embolden[ Install R]] ] --- class: middle, inverse ## https://www.r-project.org/ --- class: middle .hand[Demonstration] --- class: middle, inverse background-image: url("img/bench-accounting-nvzvOPQW0gc-unsplash.jpg") background-size: cover .pull-left-narrow[ .huge-blue-number[2] ] .pull-right-wide[ <br><br><br> .larger[.embolden[RStudio]] ] --- class: middle, inverse ## https://rstudio.com/ --- class: middle .hand[Demonstration] --- class: middle, inverse background-image: url("img/kelly-sikkema-5R5Trsu1aIM-unsplash.jpg") background-size: cover .pull-left-narrow[ .huge-blue-number[3] ] .pull-right-wide[ <br><br><br> .larger[.embolden[Packages]] ] --- class: middle, inverse ## Packages extend capabilities of R - `ggplot2` is a package for data visualisation - `dplyr` is a package for data manipulation - `tidyverse` is a whole bundle of packages --- class: middle, inverse ## Installing versus loading packages - **"Installing"** is when you download the package onto your computer - **"Loading"** is when you tell R to use the package --- class: middle, inverse ## Installing versus loading packages - You only need to **install once**... - ...but you need to **load every time** --- class: middle, inverse ## Installing versus loading packages - Install using `install.packages()` - Load using `library()` --- class: middle .hand[Demonstration] --- class: middle, inverse background-image: url("img/ash-edmonds-LHlC2sl0Zxs-unsplash.jpg") background-size: cover .pull-left-narrow[ .huge-blue-number[4] ] .pull-right-wide[ <br><br><br> .larger[.embolden[.plainwhite[Remotes]]] ] --- class: middle, inverse ## Using the remotes package - `install_cran()` installs packages from "CRAN" - `install_github()` installs packages from "GitHub" --- class: middle, inverse ## What's the difference - CRAN: comprehensive R archive network - GitHub: general purpose site for software --- class: middle .hand[Demonstration] --- class: middle, inverse background-image: url("img/fredy-jacob-t0SlmanfFcg-unsplash.jpg") background-size: cover .hand[... and done! ❤️]