The caret package needs to be installed using install.packages("caret").
Getting ready
Get R Statistics Cookbook now with O’Reilly online learning.
O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.