2017-06-18 93 views
0
library(caret) 

Loading required package: ggplot2 Error: package or namespace load failed for ‘ggplot2’ in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]): there is no package called ‘gtable’ Error: package ‘ggplot2’ could not be loaded如何安裝插入式包裝?在安裝時,我得到這個消息

+0

首先'install.packages( 「插入符號」)',和'install.packages(「ggplot2」)'',然後'庫(插入符號)' – CPak

+0

另外,確保沒有其他R實例打開,並且在安裝包時加載這些包。 – topepo

回答

2

嘗試......

install.packages('caret', dependencies = TRUE) 
-1

只是試試這個

install.packages(pkgs = "caret", 
      dependencies = c("Depends", "Imports"))