>library(caret)
载入需要的程辑包:lattice载入需要的程辑包:ggplot2Error: package or namespace load failed for ‘caret’ in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]):
载入了名字空间‘tibble’ 1.4.2,但需要的是>= 2.0.0In addition: Warning messages:1: 程辑包‘caret’是用R版本3.5.3 来建造的
2: 程辑包‘lattice’是用R版本3.5.3 来建造的
3: 程辑包‘ggplot2’是用R版本3.5.3 来建造的
>install.packages("lattice")
trying URL 'https://mirrors.tuna.tsinghua.edu.cn/CRAN/bin/windows/contrib/3.5/lattice_0.20-38.zip'Content type 'application/zip' length 1160093 bytes (1.1 MB)downloaded 1.1 MBpackage ‘lattice’ successfully unpacked and MD5 sums checked
Warning in install.packages :
cannot remove prior installation of package ‘lattice’
The downloaded binary packages are in
C:\Users\DELL\AppData\Local\Temp\Rtmp4aqJBf\downloaded_packages
> install.packages("ggplot2")
trying URL 'https://mirrors.tuna.tsinghua.edu.cn/CRAN/bin/windows/contrib/3.5/ggplot2_3.1.1.zip'Content type 'application/zip' length 3622933 bytes (3.5 MB)downloaded 3.5 MBpackage ‘ggplot2’ successfully unpacked and MD5 sums checked
The downloaded binary packages are in
C:\Users\DELL\AppData\Local\Temp\Rtmp4aqJBf\downloaded_packages
> library(caret)
Error: 找不到‘caret’所需要的程辑包‘lattice’In addition: Warning messages:1: 程辑包‘caret’是用R版本3.5.3 来建造的
2: In read.dcf(file.path(p, "DESCRIPTION"), c("Package", "Version")) : cannot open compressed file 'E:/R.SSS/R-3.5.1/library/lattice/DESCRIPTION', probable reason 'No such file or directory'