无法在Windows 8.1上的R中安装ggp​​lot2软件包

时间:2015-03-30 02:26:30

标签: r ggplot2 installation package

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

> 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

1 个答案:

答案 0 :(得分:5)

有时镜子需要很长时间才能更新,而且他们几天都不会拿起包装的二进制文件。

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

...从内存中经常可以在Windows上运行。