简体   繁体   中英

installation of package ‘car’ had non-zero exit status in R 3.6.0

I try to install car package in Windows version of R 3.6.0 . I use Windows 8.1. I got following error message: installation of package 'car' had non-zero exit status

Full output:

> 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

Other packages, like psych are successfully installed.

For windows, try version 3.0.2 of the car package.

install.packages("https://cran.r-project.org/bin/windows/contrib/3.5/car_3.0-2.zip",
                 lib = .libPaths()[1], repos = NULL, type = "win.binary")
packageVersion("car")

package ‘car’ successfully unpacked and MD5 sums checked
> packageVersion("car")
[1] ‘3.0.2’

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM