Using Caret Package but Getting Error in library(e1071)

PMa picture PMa · Jun 10, 2014 · Viewed 69.8k times · Source

Here are my codes, pretty standard but I am getting the error msg:

library(caret)
set.seed(32343)
modelFit = train(type~.,data=training, method='glm')

error msg:

Error in library(e1071) : there is no package called ‘e1071’

Any idea? Thanks!

Answer

user3710546 picture user3710546 · Jun 10, 2014

You need to install the package e1071, as the error message is telling you.

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