Install packages we’ll use

Copy and paste this long code chunk into the R Console window and press [Enter]. Each package will be downloaded (along with package dependencies) and installed.

# Prof. Erik Erhardt
# R Install All

# Fall 2019 / Spring 2020

## Pre-req: R and RStudio
## R Download pages:
##    Windows: https://cran.r-project.org/bin/windows/base/
##    Mac:     https://cran.r-project.org/bin/macosx/
##    Win/Mac: https://www.rstudio.com/products/rstudio/download/#download
## RStudio Desktop Download page:
##    https://rstudio.com/products/rstudio/download/#download

## After R and RStudio are installed, then:
##  start RStudio and copy/paste the code below into the console and press [Enter].
# If it asks to "install from sources the package which needs compilation", say No.

# This script will install the required packages for R.

# set a package repository
local({
  r <- getOption("repos")
  r["CRAN"] <- "https://cran.revolutionanalytics.com/"
  options(repos = r)
})

# Install all CRAN packages
package_list <-
  c(
    "aod"
  , "BSDA"
  , "candisc"
  , "car"
  , "caret"
  , "class"
  , "cluster"
  , "coin"
  , "deducorrect"
  , "descr"
  , "digest"
  , "dplyr"
  , "e1071"
  , "editrules"
  , "ellipse"
  , "emmeans"
  , "factoextra"
  , "FactoMineR"
  , "forcats"
  , "GA"
  , "gdata"
  , "GGally"
  , "ggplot2"
  , "gridExtra"
  , "gsheet"
  , "gvlma"
  , "heplots"
  , "Hmisc"
  , "inline"
  , "klaR"
  , "knitr"
  , "LaplacesDemon"
  , "lattice"
  , "leaps"
  , "lmPerm"
  , "lubridate"
  , "MASS"
  , "mixtools"
  , "mlbench"
  , "moments"
  , "moonBook"
  , "multcomp"
  , "multcompView"
  , "mvnormtest"
  , "NbClust"
  , "nortest"
  , "npsm"
  , "popbio"
  , "pwr"
  , "R.oo"
  , "randomForestSRC"
  , "rgl"
  , "ROCR"
  , "rpart"
  , "rspa"
  , "scales"
  , "scatterplot3d"
  , "scholar"
  , "stargazer"
  , "stringdist"
  , "stringr"
  , "TeachingDemos"
  , "tidyr"
  , "tidyverse"
  , "tm"
  , "tseries"
  , "vcd"
  , "vegan"
  , "VIM"
  , "vioplot"
  , "WDI"
  , "wordcloud"
  , "xtable"
  )

install.packages(package_list, dependencies = TRUE, type = "binary")