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)

If you will be using the caret package regularly try:

install.packages('caret', dependencies = TRUE)

This will automatically download package e1071 as well as ellipse and many other package dependancies that arise in using caret

for more information please check out the CRAN package page for caret here caret package info