Caret won't install/load properly

r

#1

when i do
install.packages(“caret”)
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:

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


#2

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


#3

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.

Regards,
Tabish