gpt4 book ai didi

r - backports 1.1.1 包安装失败

转载 作者:行者123 更新时间:2023-12-04 10:54:56 25 4
gpt4 key购买 nike

我无法公开我的 R 笔记本。当我尝试发布时,出现以下错误:

Console~/

Console
R Markdown

.../R Test 1/Fall Programming with R Test 1.Rmd
Error in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]) :
there is no package called 'backports'
Calls: :: ... tryCatch -> tryCatchList -> tryCatchOne -> <Anonymous>
Execution halted

我尝试安装 backports,但它似乎也不起作用。当我尝试安装 backports 时出现此错误:
> install.packages("backports")
Installing package into ‘C:/Users/agdpa/Documents/R/win-library/3.4’
(as ‘lib’ is unspecified)

There is a binary version available but the source version is later:
binary source needs_compilation
backports 1.1.0 1.1.1 FALSE

installing the source package ‘backports’

trying URL 'https://cran.rstudio.com/src/contrib/backports_1.1.1.tar.gz'
Content type 'application/x-gzip' length 10090 bytes
downloaded 10090 bytes

* installing *source* package 'backports' ...
** package 'backports' successfully unpacked and MD5 sums checked
** libs

*** arch - i386
Warning: running command 'make -f "C:/PROGRA~1/R/R-34~1.1/etc/i386/Makeconf" -f "C:/PROGRA~1/R/R-34~1.1/share/make/winshlib.mk" SHLIB="backports.dll" OBJECTS="dotsElt.o dotsLength.o init.o"' had status 127
ERROR: compilation failed for package 'backports'
* removing 'C:/Users/agdpa/Documents/R/win-library/3.4/backports'
Warning in install.packages :
running command '"C:/PROGRA~1/R/R-34~1.1/bin/x64/R" CMD INSTALL -l "C:\Users\agdpa\Documents\R\win-library\3.4" C:\Users\agdpa\AppData\Local\Temp\Rtmp8IcAL2/downloaded_packages/backports_1.1.1.tar.gz' had status 1
Warning in install.packages :
installation of package ‘backports’ had non-zero exit status

最佳答案

我在 backports R 包中遇到了类似的错误。它阻止 devtools 包安装我编写的自定义包。

我通过安装以前版本的 backports 来修复它:

require(devtools)
install_version("backports", version = "1.1.0")

关于r - backports 1.1.1 包安装失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46416458/

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