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\')
You need to install the package e1071, as the error message is telling you.
e1071
install.packages('e1071', dependencies=TRUE)