0

我正在尝试在 R 版本 3.4.2 中安装“systemfit”包。但是,我收到“汽车”错误。我尝试使用“依赖项”设置进行安装,但仍然无法正常工作。

> install.packages("systemfit",dependencies = TRUE)
Installing package into ‘C:/Users/wb480571/OneDrive - WBG/Documents/R/win-library/3.4’
(as ‘lib’ is unspecified)
Warning in install.packages :
  dependencies ‘car’, ‘sem’ are not available

  There is a binary version available but the source version is later:
          binary source needs_compilation
systemfit 1.1-22 1.1-24             FALSE

installing the source package ‘systemfit’

trying URL 'https://cran.rstudio.com/src/contrib/systemfit_1.1-24.tar.gz'
Content type 'application/x-gzip' length 1241006 bytes (1.2 MB)
downloaded 1.2 MB

ERROR: dependency 'car' is not available for package 'systemfit'
* removing 'C:/Users/XXX/OneDriveXXX/Documents/R/win-library/3.4/systemfit'
Warning in install.packages :
  running command '"C:/PROGRA~1/R/R-34~1.2/bin/x64/R" CMD INSTALL -l "C:\Users\XXX\OneDrive \Documents\R\win-library\3.4" C:\Users\XXX\AppData\Local\Temp\RtmpGs8XAa/downloaded_packages/systemfit_1.1-24.tar.gz' had status 1
Warning in install.packages :
  installation of package ‘systemfit’ had non-zero exit status
4

0 回答 0