PMa
PMa

Reputation: 1771

Using Caret Package but Getting Error in library(e1071)

Here is my code:

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

It's pretty standard but I am getting the error message:

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

What's the cause, and how can the problem be resolved?

Upvotes: 74

Views: 84156

Answers (2)

irJERAD
irJERAD

Reputation: 610

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

Upvotes: 27

user3710546
user3710546

Reputation:

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

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

Upvotes: 124

Related Questions