【发布时间】:2019-05-29 19:20:14
【问题描述】:
我尝试在 R 3.6.0 的 Windows 版本中安装 car 软件包。我使用 Windows 8.1。我收到以下错误消息:installation of package ‘car’ had non-zero exit status
完整输出:
> install.packages("car")
Installing package into ‘C:/Users/Zsófia/Documents/R/win-library/3.6’
(as ‘lib’ is unspecified)
--- Please select a CRAN mirror for use in this session ---
There is a binary version available but the source version is later:
binary source needs_compilation
car 3.0-2 3.0-3 FALSE
installing the source package ‘car’
trying URL 'https://cloud.r-project.org/src/contrib/car_3.0-3.tar.gz'
Content type 'application/x-gzip' length 539020 bytes (526 KB)
downloaded 526 KB
* installing *source* package 'car' ...
** package 'car' successfully unpacked and MD5 sums checked
** using staged installation
Warning in file(file, if (append) "a" else "w") :
cannot open file 'C:/Users/Zssfia/Documents/R/win-library/3.6/00LOCK-car/00new/car/DESCRIPTION': No such file or directory
Error in file(file, if (append) "a" else "w") :
cannot open the connection
ERROR: installing package DESCRIPTION failed for package 'car'
* removing 'C:/Users/Zsófia/Documents/R/win-library/3.6/car'
The downloaded source packages are in
‘C:\Users\Zsófia\AppData\Local\Temp\RtmpK0Qk4Q\downloaded_packages’
Warning message:
In install.packages("car") :
installation of package ‘car’ had non-zero exit status
其他包,如psych 已成功安装。
【问题讨论】:
-
如果系统提示您回答“是”或“否”以从源安装,并且回答“是”不起作用(看起来像您所做的那样),请尝试回答“否”跨度>
-
@camille : 没被问到,我只是安装在其他机器上,没有看到这样的消息。
-
@camille : 谢谢,我用 type="binary" 试了一下,成功了。
标签: r package install.packages