无法访问R中的用户库-“非零退出状态";警告 [英] Can't access User Library in R - "Non-Zero Exit Status" warning

查看:125
本文介绍了无法访问R中的用户库-“非零退出状态";警告的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试在工作笔记本电脑上安装软件包时,出现错误.有人告诉我,我拥有笔记本电脑的全部特权,因此应该没有障碍.

When I tried to install packages on my work laptop, I got an error. I've been told that I have full privileges with the laptop, so there should be no blocks.

我认为这可能与已安装软件包所在的库的文件路径有关?我正在使用最新版本的R和R Studio(64位),并且正在使用加拿大的U of T CRAN镜像站点.

I think it might be something to do with the file path to the library where installed packages go? I'm using both the latest version of R and R Studio, 64-bit, and using Canada's U of T CRAN mirror site.

这是我尝试使用

install.packages("plyr")

还安装了依赖项"Rcpp" 仅以源格式提供的软件包,可能需要编译 C/C ++/Fortran:"Rcpp","plyr"

also installing the dependency ‘Rcpp’ Packages which are only available in source form, and may need compilation of C/C++/Fortran: ‘Rcpp’ ‘plyr’

当我尝试安装ggplot2时,这是一长串错误消息:

And when I try to install ggplot2, here is the long error message:

错误:依赖项"stringi"不适用于程序包"stringr" *删除'C:/RPackages/R-3.2.3/library/stringr' install.packages中的警告: 运行命令'"C:/RPACKA~1/R-32~1.3/bin/x64/R" CMD安装-l"C:\ RPackages \ R-3.2.3 \ library" C:\ Users \ MICHAE〜1. COL \ AppData \ Local \ Temp \ RtmpGs24zA/downloaded_pa​​ckages/stringr_1.0.0.tar.gz'的状态为1 install.packages中的警告: 软件包"stringr"的安装退出状态为非零 错误:依赖项"colorspace"不适用于软件包"munsell" *删除"C:/RPackages/R-3.2.3/library/munsell" install.packages中的警告: 运行命令'"C:/RPACKA~1/R-32~1.3/bin/x64/R" CMD安装-l"C:\ RPackages \ R-3.2.3 \ library" C:\ Users \ MICHAE〜1. COL \ AppData \ Local \ Temp \ RtmpGs24zA/downloaded_pa​​ckages/munsell_0.4.3.tar.gz'的状态为1 install.packages中的警告: 软件包"munsell"的安装退出状态为非零 错误:依赖项"digest","plyr","reshape2","scales"不适用于软件包"ggplot2" *删除'C:/RPackages/R-3.2.3/library/ggplot2' install.packages中的警告: 运行命令'"C:/RPACKA~1/R-32~1.3/bin/x64/R" CMD安装-l"C:\ RPackages \ R-3.2.3 \ library" C:\ Users \ MICHAE〜1. COL \ AppData \ Local \ Temp \ RtmpGs24zA/downloaded_pa​​ckages/ggplot2_2.0.0.tar.gz'的状态为1 install.packages中的警告: 软件包"ggplot2"的安装退出状态为非零 下载的源程序包位于 ‘C:\ Users \ michael.colangelo \ AppData \ Local \ Temp \ RtmpGs24zA \ downloaded_pa​​ckages'

ERROR: dependency 'stringi' is not available for package 'stringr' * removing 'C:/RPackages/R-3.2.3/library/stringr' Warning in install.packages : running command '"C:/RPACKA~1/R-32~1.3/bin/x64/R" CMD INSTALL -l "C:\RPackages\R-3.2.3\library" C:\Users\MICHAE~1.COL\AppData\Local\Temp\RtmpGs24zA/downloaded_packages/stringr_1.0.0.tar.gz' had status 1 Warning in install.packages : installation of package ‘stringr’ had non-zero exit status ERROR: dependency 'colorspace' is not available for package 'munsell' * removing 'C:/RPackages/R-3.2.3/library/munsell' Warning in install.packages : running command '"C:/RPACKA~1/R-32~1.3/bin/x64/R" CMD INSTALL -l "C:\RPackages\R-3.2.3\library" C:\Users\MICHAE~1.COL\AppData\Local\Temp\RtmpGs24zA/downloaded_packages/munsell_0.4.3.tar.gz' had status 1 Warning in install.packages : installation of package ‘munsell’ had non-zero exit status ERROR: dependencies 'digest', 'plyr', 'reshape2', 'scales' are not available for package 'ggplot2' * removing 'C:/RPackages/R-3.2.3/library/ggplot2' Warning in install.packages : running command '"C:/RPACKA~1/R-32~1.3/bin/x64/R" CMD INSTALL -l "C:\RPackages\R-3.2.3\library" C:\Users\MICHAE~1.COL\AppData\Local\Temp\RtmpGs24zA/downloaded_packages/ggplot2_2.0.0.tar.gz' had status 1 Warning in install.packages : installation of package ‘ggplot2’ had non-zero exit status The downloaded source packages are in ‘C:\Users\michael.colangelo\AppData\Local\Temp\RtmpGs24zA\downloaded_packages’

非零退出状态"是什么意思?是否正在尝试查找用于安装的库?>代码中提到的appData文件似乎不存在,或者我无法访问它.如何将其更改为另一个本地文件夹?

What does "non-zero exit status" mean? Is it trying to find a library for the installation?> The appData file mentioned in the code doesn't seem to exist or I cannot access it. How do I change it to another local folder?

推荐答案

在这种情况下,非零退出状态表示系统无法安装软件包.在安装过程中似乎存在许多未解决的依赖项.您可以尝试通过使用选项dependencies=TRUE安装软件包来解决此问题.像这样:

A non-zero exit status means in this case that the system failed to install the package. There seem to be a number of unresolved dependencies in the installation process. You could try to resolve this by attempting to install the package using the option dependencies=TRUE; like this:

install.packages("ggplot2", dependencies=TRUE)

这篇关于无法访问R中的用户库-“非零退出状态";警告的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆