簡體   English   中英

backports 1.1.1 包安裝失敗

[英]backports 1.1.1 package fails to install

我無法公開我的 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")

我解決了它重新安裝 Rtools(我正在運行 Windows)。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM