【问题标题】:Unable to install ggplot2 package in R on windows 8.1无法在 Windows 8.1 上的 R 中安装 ggplot2 包
【发布时间】:2015-06-02 22:52:21
【问题描述】:

我尝试使用以下命令安装 ggplot2,但无法安装。

> library('ggplot2')
Error in library("ggplot2") : there is no package called ‘ggplot2’\
> install.packages('ggplot2', dependencies = T)

   package ‘ggplot2’ is available as a source package but not as a binary

Warning in install.packages :
  package ‘ggplot2’ is not available (as a binary package for R version 3.1.3)
> 

你能告诉我出了什么问题吗?

当我使用命令install.packages("ggplot2", type="source",dependencies = TRUE) 时出现以下错误

*** arch - i386
Warning: running command 'make -f "D:/R/R-31~1.3/etc/i386/Makeconf" -f "D:/R/R-31~1.3/share/make/winshlib.mk" SHLIB="acepack.dll" SHLIB_LIBADD='$(FLIBS)' OBJECTS="ace.o avas.o rlsmo.o"' had status 127
ERROR: compilation failed for package 'acepack'
* removing 'D:/R/R-3.1.3/library/acepack'
Warning in install.packages :
  running command '"D:/R/R-31~1.3/bin/x64/R" CMD INSTALL -l "D:\R\R-3.1.3\library" C:\Users\surjya\AppData\Local\Temp\RtmpWyq9oh/downloaded_packages/acepack_1.3-3.3.tar.gz' had status 1
Warning in install.packages :
  installation of package ‘acepack’ had non-zero exit status

【问题讨论】:

    标签: r ggplot2 installation package


    【解决方案1】:

    有时镜像需要很长时间才能更新,而且它们几天都不会获取软件包的二进制文件。

    试试install.packages("ggplot2", type="source")

    ...根据记忆,它通常适用于 Windows。

    【讨论】:

    • 你好,我在使用源码包时仍然面临编译错误。这是一个错误。我已经更新了我的问题中的错误。请参考上面
    • 啊 - 两个选项(再次,凭记忆!)。尝试install.packages("acepack"),并将该技巧用于安装 ggplot 时出现错误的任何其他软件包。或者,install Rtools,然后重新运行第一行。问题是您无法在 Windows 上编译需要 C 代码等的软件包;这(应该希望)修复它
    猜你喜欢
    • 2014-12-14
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-06-01
    • 1970-01-01
    • 1970-01-01
    • 2014-10-03
    相关资源
    最近更新 更多