调用库和安装包时出现R错误消息

时间:2015-05-05 16:22:19

标签: r plyr

当调用通常运行良好的库时,我开始在R中收到一些错误消息。我决定重新安装有关的软件包,并且还遇到了一些错误。

知道发生了什么事吗?我准备把电脑扔进窗户..

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

   > install.packages("plyr_1.8.2.tar.gz", repos = NULL, type="source")
    Installing package into ‘C:/Users/Sun/Documents/R/win-library/3.2’
    (as ‘lib’ is unspecified)
    * installing *source* package 'plyr' ...
    ** package 'plyr' successfully unpacked and MD5 sums checked
    ** libs

    *** arch - i386
    Warning: running command 'make -f "C:/PROGRA~1/R/R-32~1.0/etc/i386/Makeconf" -f "C:/PROGRA~1/R/R-32~1.0/share/make/winshlib.mk" SHLIB_LDFLAGS='$(SHLIB_CXXLDFLAGS)' SHLIB_LD='$(SHLIB_CXXLD)' SHLIB="plyr.dll" OBJECTS="RcppExports.o loop-apply.o split-numeric.o"' had status 127
    ERROR: compilation failed for package 'plyr'
    * removing 'C:/Users/Sun/Documents/R/win-library/3.2/plyr'
    Warning messages:
    1: running command '"C:/PROGRA~1/R/R-32~1.0/bin/x64/R" CMD INSTALL -l "C:\Users\Sun\Documents\R\win-library\3.2" "plyr_1.8.2.tar.gz"' had status 1 
    2: In install.packages("plyr_1.8.2.tar.gz", repos = NULL, type = "source") :
      installation of package ‘plyr_1.8.2.tar.gz’ had non-zero exit status

1 个答案:

答案 0 :(得分:1)

感谢Joran,从CRAN安装实际上解决了这个问题。

install.packages("plyr")