Caret won't install/load properly



when i do
it appears that the package is successfully installed (R response is posted at the bottom of this text). However, when I run library(caret), I get the following error messages:

Error: package or namespace load failed for ‘caret’ in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]):
there is no package called ‘lava’


Hi @mukul98m install the package ‘lava’ and then try loading caret using library(caret) .


Very true,install “lava”, at times the dependencies are not installed so you might have to install and load them first then try loading the package of interest.

For eg : I try to load “ggplot2” and it asks me to load “lattice”.

Hope this helps.