gpt4 book ai didi

r - 无法在 Windows 8.1 上的 R 中安装 ggplot2 包

转载 作者:行者123 更新时间:2023-12-04 13:39:22 25 4
gpt4 key购买 nike

我尝试使用以下命令安装 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

最佳答案

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

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

...根据内存,它经常在 Windows 上运行。

关于r - 无法在 Windows 8.1 上的 R 中安装 ggplot2 包,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29337477/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com