我可以在我的R Studio系统库中加载许多软件包(例如集群),但是我无法加载其他软件包,例如dplyr,即使它出现在系统库中。例如,当我尝试加载dplyr时,收到此错误消息:
Error in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]) :
there is no package called ‘DBI’
但是当我尝试加载DBI包时,我收到此错误消息:
'\\s10file\user$\ben.k\My Documents\R\win-library\3.4'
CMD.EXE was started with the above path as the current directory.
UNC paths are not supported. Defaulting to Windows directory.
'C:\Program' is not recognized as an internal or external command,
operable program or batch file.
Warning in install.packages :
running command '"C:/Program Files/R/R-3.2.4revised/bin/x64/R" CMD INSTALL -l
"C:\Program Files\R\R-3.2.4revised\library" "C:/Users/Ben.K/AppData/Local/Temp/RtmpgTzZma/downloaded_packages/DBI_0.7.tar.gz"' had status 1
Warning in install.packages : installation of package
‘C:/Users/Ben.K/AppData/Local/Temp/RtmpgTzZma/downloaded_packages/DBI_0.7.tar.gz’ had non-zero exit status
我也尝试了以下内容:
我也遇到过与ggplot2和fpc类似的问题。我不是R专家,感谢任何帮助,谢谢。