Getting Started in R: Installation


To use R code, you need to install the following:
  1. Base R Program from here: https://cran.r-project.org/ (It's Free!)
  2. Makes R more user friendly to run: https://rstudio.com/products/rstudio/download/ (Also Free!)

Getting Started in R: Installing Packages

Key Points

Code: Install Packages Example

#installing the dslabs package
install.packages("dslabs")
#loading the dslabs package into the R session
library(dslabs)

Advanced

Code: More Installing Packages & Looking at Installed Packages

install.packages("dslabs")  # to install a single package
install.packages(c("tidyverse", "dslabs")) # to install two packages at the same time
installed.packages() # to see the list of all installed packages

RStudio: How to Use

https://education.rstudio.com/learn/beginner/
https://rstudio.com/resources/cheatsheets/
In general Rstudio helps you out within its GUI by using ?#anything.