Harshal Rohit
Harshal Rohit

Reputation: 1

R caret install error

library(caret)
Error in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]) : 
  object 'vI' not found
In addition: Warning message:
package ‘caret’ was built under R version 3.3.3 
Error: package or namespace load failed for ‘caret’

I tried everything from re-installing R to deleting all the library folder but nothing helps.

Upvotes: 0

Views: 187

Answers (1)

Sorif Hossain
Sorif Hossain

Reputation: 1351

At first, you need to install package lattice and ggplot2. Then install the caret package. or, You can use the devtools library for installing the caret package.

    install.packages("devtools")
    library(devtools)
    install_cran("caret")        

Upvotes: 1

Related Questions