The must-have R Packages you can't go without!

"Can someone just tell me which R packages I should install!????"

Sure Thing

Whether you're just starting out with Data Analysis in R, or just looking for more cool and essential packages, here is my ultimate list of must-have packages that I use as a base for EVERY R work-space. Once you have these, you can just add more as you require depending on the project your working on.

Enjoy!

To install them all, simply enter the following code in your RGui or R studio console.


packageList <- c("randomForest", "purrr", "ggvis", "plyr", "sqldf", "shiny", "lattice", "ggplot2", "googleplotvis", "caret", "e1071", "gbm", "glmnet", "kernlab", "ipred", "lda", "tm", "party", "nnet", "rpart", "Snowball", "openNLP", "stringr", "reshape2", "data.table", "lubridate", "xts", "zoo", "Rcpp", "digest", "colorspace", "RColorBrewer", "manipulate", "scales", "labeling", "proto", "munsell", "gtable", "dichromat", "mime", "RCurl", "bitops", "knitr", "acepack", "assertthat", "BH", "boot", "brew", "car", "caTools", "chron", "codetools", "DBI", "devtools", "dplyr", "evaluate", "foreach", "forecast", "foreign", "formatR", "Formula", "gdata", "gplots", "gridExtra", "gtools", "highr", "Hmisc", "htmltools", "httpuv", "httr", "igraph", "iterators", "jsonlite", "kern", "lattice", "latticeExtra", "lazyeval", "lme4", "magrittr", "maps", "markdown", "MASS", "Matrix", "memoise", "mgcv", "minqa", "mnormt", "mvtnorm", "nloptr", "NLP", "pbkrtest", "quadprog", "quantreg", "R6", "RcppArmadillo", "RcppEigen", "reshape", "rgl", "rJava", "RJSONIO", "rmarkdown", "roxygen2", "rstudioapi", "sandwich", "slam", "sp", "SparseM", "survival", "testthat", "timeDate", "tseries", "whisker", "xlsx", "XML", "xtable", "yaml")

install.packages(packageList, dependencies=TRUE)

Once complete, you should see the following in the console; and have the following packages at your mighty command!


package ‘bitops’ successfully unpacked and MD5 sums checked package ‘openssl’ successfully unpacked and MD5 sums checked package ‘minqa’ successfully unpacked and MD5 sums checked package ‘nloptr’ successfully unpacked and MD5 sums checked package ‘RcppEigen’ successfully unpacked and MD5 sums checked package ‘profileModel’ successfully unpacked and MD5 sums checked package ‘plotrix’ successfully unpacked and MD5 sums checked package ‘gplots’ successfully unpacked and MD5 sums checked package ‘numDeriv’ successfully unpacked and MD5 sums checked package ‘tibble’ successfully unpacked and MD5 sums checked package ‘BH’ successfully unpacked and MD5 sums checked package ‘crayon’ successfully unpacked and MD5 sums checked package ‘praise’ successfully unpacked and MD5 sums checked package ‘evaluate’ successfully unpacked and MD5 sums checked package ‘formatR’ successfully unpacked and MD5 sums checked package ‘highr’ successfully unpacked and MD5 sums checked package ‘yaml’ successfully unpacked and MD5 sums checked package ‘caTools’ successfully unpacked and MD5 sums checked package ‘base64enc’ successfully unpacked and MD5 sums checked package ‘rex’ successfully unpacked and MD5 sums checked package ‘httr’ successfully unpacked and MD5 sums checked package ‘withr’ successfully unpacked and MD5 sums checked package ‘memoise’ successfully unpacked and MD5 sums checked package ‘RJDBC’ successfully unpacked and MD5 sums checked package ‘dichromat’ successfully unpacked and MD5 sums checked package ‘munsell’ successfully unpacked and MD5 sums checked package ‘labeling’ successfully unpacked and MD5 sums checked package ‘Formula’ successfully unpacked and MD5 sums checked package ‘latticeExtra’ successfully unpacked and MD5 sums checked package ‘acepack’ successfully unpacked and MD5 sums checked package ‘gridExtra’ successfully unpacked and MD5 sums checked package ‘sp’ successfully unpacked and MD5 sums checked package ‘MatrixModels’ successfully unpacked and MD5 sums checked package ‘gdtools’ successfully unpacked and MD5 sums checked package ‘pbkrtest’ successfully unpacked and MD5 sums checked package ‘lme4’ successfully unpacked and MD5 sums checked package ‘brglm’ successfully unpacked and MD5 sums checked package ‘gtools’ successfully unpacked and MD5 sums checked package ‘plotmo’ successfully unpacked and MD5 sums checked package ‘TeachingDemos’ successfully unpacked and MD5 sums checked package ‘combinat’ successfully unpacked and MD5 sums checked package ‘ROCR’ successfully unpacked and MD5 sums checked package ‘ISwR’ successfully unpacked and MD5 sums checked package ‘corpcor’ successfully unpacked and MD5 sums checked package ‘lava’ successfully unpacked and MD5 sums checked package ‘lmtest’ successfully unpacked and MD5 sums checked package ‘bit’ successfully unpacked and MD5 sums checked package ‘bdsmatrix’ successfully unpacked and MD5 sums checked package ‘RColorBrewer’ successfully unpacked and MD5 sums checked package ‘assertthat’ successfully unpacked and MD5 sums checked package ‘jsonlite’ successfully unpacked and MD5 sums checked package ‘magrittr’ successfully unpacked and MD5 sums checked package ‘dplyr’ successfully unpacked and MD5 sums checked package ‘lazyeval’ successfully unpacked and MD5 sums checked package ‘htmltools’ successfully unpacked and MD5 sums checked package ‘lubridate’ successfully unpacked and MD5 sums checked package ‘testthat’ successfully unpacked and MD5 sums checked package ‘knitr’ successfully unpacked and MD5 sums checked package ‘rmarkdown’ successfully unpacked and MD5 sums checked package ‘Rcpp’ successfully unpacked and MD5 sums checked package ‘abind’ successfully unpacked and MD5 sums checked package ‘foreach’ successfully unpacked and MD5 sums checked package ‘doParallel’ successfully unpacked and MD5 sums checked package ‘itertools’ successfully unpacked and MD5 sums checked package ‘iterators’ successfully unpacked and MD5 sums checked package ‘covr’ successfully unpacked and MD5 sums checked package ‘gsubfn’ successfully unpacked and MD5 sums checked package ‘proto’ successfully unpacked and MD5 sums checked package ‘RSQLite’ successfully unpacked and MD5 sums checked package ‘DBI’ successfully unpacked and MD5 sums checked package ‘chron’ successfully unpacked and MD5 sums checked package ‘RH2’ successfully unpacked and MD5 sums checked package ‘RMySQL’ successfully unpacked and MD5 sums checked package ‘RPostgreSQL’ successfully unpacked and MD5 sums checked package ‘svUnit’ successfully unpacked and MD5 sums checked package ‘httpuv’ successfully unpacked and MD5 sums checked package ‘mime’ successfully unpacked and MD5 sums checked package ‘xtable’ successfully unpacked and MD5 sums checked package ‘digest’ successfully unpacked and MD5 sums checked package ‘R6’ successfully unpacked and MD5 sums checked package ‘Cairo’ successfully unpacked and MD5 sums checked package ‘markdown’ successfully unpacked and MD5 sums checked package ‘gtable’ successfully unpacked and MD5 sums checked package ‘scales’ successfully unpacked and MD5 sums checked package ‘ggplot2movies’ successfully unpacked and MD5 sums checked package ‘hexbin’ successfully unpacked and MD5 sums checked package ‘Hmisc’ successfully unpacked and MD5 sums checked package ‘mapproj’ successfully unpacked and MD5 sums checked package ‘maps’ successfully unpacked and MD5 sums checked package ‘maptools’ successfully unpacked and MD5 sums checked package ‘multcomp’ successfully unpacked and MD5 sums checked package ‘quantreg’ successfully unpacked and MD5 sums checked package ‘svglite’ successfully unpacked and MD5 sums checked package ‘car’ successfully unpacked and MD5 sums checked package ‘BradleyTerry2’ successfully unpacked and MD5 sums checked package ‘earth’ successfully unpacked and MD5 sums checked package ‘fastICA’ successfully unpacked and MD5 sums checked package ‘gam’ successfully unpacked and MD5 sums checked package ‘klaR’ successfully unpacked and MD5 sums checked package ‘ellipse’ successfully unpacked and MD5 sums checked package ‘mda’ successfully unpacked and MD5 sums checked package ‘mlbench’ successfully unpacked and MD5 sums checked package ‘MLmetrics’ successfully unpacked and MD5 sums checked package ‘pls’ successfully unpacked and MD5 sums checked package ‘pROC’ successfully unpacked and MD5 sums checked package ‘proxy’ successfully unpacked and MD5 sums checked package ‘RANN’ successfully unpacked and MD5 sums checked package ‘spls’ successfully unpacked and MD5 sums checked package ‘subselect’ successfully unpacked and MD5 sums checked package ‘pamr’ successfully unpacked and MD5 sums checked package ‘superpc’ successfully unpacked and MD5 sums checked package ‘Cubist’ successfully unpacked and MD5 sums checked package ‘SparseM’ successfully unpacked and MD5 sums checked package ‘RUnit’ successfully unpacked and MD5 sums checked package ‘lars’ successfully unpacked and MD5 sums checked package ‘prodlim’ successfully unpacked and MD5 sums checked package ‘mvtnorm’ successfully unpacked and MD5 sums checked package ‘TH.data’ successfully unpacked and MD5 sums checked package ‘penalized’ successfully unpacked and MD5 sums checked package ‘NLP’ successfully unpacked and MD5 sums checked package ‘slam’ successfully unpacked and MD5 sums checked package ‘filehash’ successfully unpacked and MD5 sums checked package ‘SnowballC’ successfully unpacked and MD5 sums checked package ‘XML’ successfully unpacked and MD5 sums checked package ‘modeltools’ successfully unpacked and MD5 sums checked package ‘strucchange’ successfully unpacked and MD5 sums checked package ‘coin’ successfully unpacked and MD5 sums checked package ‘zoo’ successfully unpacked and MD5 sums checked package ‘sandwich’ successfully unpacked and MD5 sums checked package ‘colorspace’ successfully unpacked and MD5 sums checked package ‘vcd’ successfully unpacked and MD5 sums checked package ‘openNLPdata’ successfully unpacked and MD5 sums checked package ‘rJava’ successfully unpacked and MD5 sums checked package ‘stringi’ successfully unpacked and MD5 sums checked package ‘reshape’ successfully unpacked and MD5 sums checked package ‘fastmatch’ successfully unpacked and MD5 sums checked package ‘xts’ successfully unpacked and MD5 sums checked package ‘bit64’ successfully unpacked and MD5 sums checked package ‘gdata’ successfully unpacked and MD5 sums checked package ‘curl’ successfully unpacked and MD5 sums checked package ‘plm’ successfully unpacked and MD5 sums checked package ‘randomForest’ successfully unpacked and MD5 sums checked package ‘ggvis’ successfully unpacked and MD5 sums checked package ‘plyr’ successfully unpacked and MD5 sums checked package ‘sqldf’ successfully unpacked and MD5 sums checked package ‘shiny’ successfully unpacked and MD5 sums checked package ‘lattice’ successfully unpacked and MD5 sums checked package ‘ggplot2’ successfully unpacked and MD5 sums checked package ‘caret’ successfully unpacked and MD5 sums checked package ‘e1071’ successfully unpacked and MD5 sums checked package ‘gbm’ successfully unpacked and MD5 sums checked package ‘glmnet’ successfully unpacked and MD5 sums checked package ‘kernlab’ successfully unpacked and MD5 sums checked package ‘ipred’ successfully unpacked and MD5 sums checked package ‘lda’ successfully unpacked and MD5 sums checked package ‘tm’ successfully unpacked and MD5 sums checked package ‘party’ successfully unpacked and MD5 sums checked package ‘nnet’ successfully unpacked and MD5 sums checked package ‘rpart’ successfully unpacked and MD5 sums checked package ‘openNLP’ successfully unpacked and MD5 sums checked package ‘stringr’ successfully unpacked and MD5 sums checked package ‘reshape2’ successfully unpacked and MD5 sums checked package ‘data.table’ successfully unpacked and MD5 sums checked

Danny Baker

Danny Blaker, Melbourne

Danny has a wealth of experience in the start-up and technology sectors spanning over 10 years, and is the founder and co-founder of numerous companies and initiatives, such as Unudge, & Geartooth.

Danny's diverse skill set encompasses disruptive marketing strategy, business strategy, product design, audio production, data analysis (R, R Markdown, Python), graphics design (photoshop, Indesign, Illustrator), communications, social media marketing, project management, growth strategy, UX design, front-end web development (WP, Joomla, JS, Python, HTML, CSS), and corporate law.

Danny is also a spreadsheet expert and an online instructor, teaching at Udemy.com. His courses have amassed over 11,000 students to date.

He also blogs regularly – you can find his posts at www.dannyblaker.com/blog.

You can reach Danny on twitter @DannyBlaker