安装特定的R软件包时出现错误

时间:2019-07-18 09:59:33

标签: r installation package osrm

当我尝试在R中安装特定的软件包时,我收到错误消息。所涉及的软件包为pillarosrm。我最近更新了几个软件包,没有任何问题,所以我不确定为什么这些软件包会引起问题。

安装两个软件包中的任何一个时收到的错误消息如下:

 There is a binary version available but the source version is later:
     binary source needs_compilation
osrm  3.2.0  3.3.1             FALSE

installing the source package ‘osrm’

trying URL 'https://cran.rstudio.com/src/contrib/osrm_3.3.1.tar.gz'
Content type 'application/x-gzip' length 119746 bytes (116 KB)
downloaded 116 KB

'\\CompanyX\ProgData\R_Studio\R-34~1.1' is not recognized as an internal or external command,
operable program or batch file.
Warning in install.packages :
  running command '"X:/R_Studio/R-34~1.1/bin/i386/R" CMD INSTALL -l "X:\R_Studio\R-3.4.1\library" C:\Users\abc123\AppData\Local\Temp\RtmpKk0RxD/downloaded_packages/osrm_3.3.1.tar.gz' had status 1
Warning in install.packages :
  installation of package ‘osrm’ had non-zero exit status

我在其他文章中看到二进制/源问题是由软件包的最新更新引起的,这需要编译器。因为我在公司的机器上,所以无法轻松安装RTools。我还安装了每个软件包的尝试过的旧版本-这会导致相同的错误。

我尝试直接通过devtools::install_github("rCarto/osrm")从Github下载,但总是出现以下错误:

Installation failed: Failed to connect to raw.githubusercontent.com port 443: Timed out

我不确定这是否是由于公司防火墙阻止了访问,但是我尝试从GitHub下载的任何软件包似乎都出现了这种情况。

最后,我尝试直接从tar.gz文件或从CRAN / GitHub下载的zip文件安装。前者导致以下错误:

'\\CompanyX\ProgData\R_Studio\R-34~1.1' is not recognized as an internal or external command,
operable program or batch file.
Warning in install.packages :
  running command '"X:/R_Studio/R-34~1.1/bin/i386/R" CMD INSTALL -l "X:\R_Studio\R-3.4.1\library" "C:/Users/abc123/AppData/Local/Temp/RtmpKk0RxD/downloaded_packages/osrm_3.3.1.tar.gz"' had status 1
Warning in install.packages :
  installation of package ‘C:/Users/abc123/AppData/Local/Temp/RtmpKk0RxD/downloaded_packages/osrm_3.3.1.tar.gz’ had non-zero exit status

虽然zip文件路由确实将package文件夹放置在R根库文件夹中,但随后导致系统错误,要求提供最新版本的R,然后完全崩溃RStudio。

对于成功安装这些软件包或我可以向公司IT部门提出的特定问题的任何建议,将不胜感激。

0 个答案:

没有答案