Using Caret Package but Getting Error in library(e1071)

RR Caret

R Problem Overview


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!

R Solutions


Solution 1 - R

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

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

Solution 2 - R

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][1]

[1]: http://cran.r-project.org/web/packages/caret/index.html "caret package"

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionPMaView Question on Stackoverflow
Solution 1 - Ruser3710546View Answer on Stackoverflow
Solution 2 - RirJERADView Answer on Stackoverflow