Packages are collections of R functions, data, and compiled code in a well-defined format. Public (and private) repositories are used to host collections of R packages. The largest collection of R packages is available from CRAN. Some of the most popular R machine learning packages are the following among others:
1) rpart
Description: Recursive partitioning for classification, regression and survival trees. An implementation of most of the functionality of the 1984 book by Breiman, Friedman, Olshen and Stone.
It can be installed from CRAN using the following code:
install.packages("rpart")
Load the package:
library(rpart)
Official source: https://cran.r-project.org/web/packages/rpart/index.html
2) e1071
Description: Functions for latent class analysis, short time Fourier transform, fuzzy clustering, support vector machines, shortest path computation, bagged clustering, naive Bayes classifier etc.
Installation from CRAN:
install.packages("e1071")
Loading the package:
library(e1071)
Official source: https://cran.r-project.org/web/packages/e1071/index.html
3) randomForest
Description: Classification and regression based on a forest of trees using random inputs.
Installation from CRAN:
install.packages("randomForest")
Loading the package:
library(randomForest)
Official source: https://cran.r-project.org/web/packages/randomForest/index.html
4) caret
Description: Misc functions for training and plotting classification and regression models.
Installation from CRAN:
install.packages("caret")
Loading the package:
library(caret)
Official source: https://cran.r-project.org/web/packages/caret/index.html