Using Caret Package but Getting Error in library(e1071) You need to install the package e1071, as the error message is telling you. install.packages('e1071', dependencies=TRUE)