установка пакета 'car' имела ненулевой статус выхода в R 3.6.0 - PullRequest
0 голосов
/ 29 мая 2019

Я пытаюсь установить car пакет в Windows версии R 3.6.0.Я использую 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, успешно установлены.

1 Ответ

1 голос
/ 30 мая 2019

Для windows попробуйте версию 3.0.2 пакета автомобиля.

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’
...