Install all of the packages needed for Practical Data Science with R.
install.packages( c('RJDBC', 'ROCR', 'Rook', 'arules', 'class', 'ctv', 'e1071',
'fpc', 'gdata', 'ggplot2', 'gridExtra', 'hexbin', 'kernlab',
'knitr', 'mgcv', 'randomForest', 'reshape2', 'rpart', 'scales',
'sqldf'),
repos="https://cran.r-project.org")
##
## The downloaded binary packages are in
## /var/folders/7q/h_jp2vj131g5799gfnpzhdp80000gn/T//RtmplxLeco/downloaded_packages
# 'grDevices', 'grid' # included with R