在R中安装汽车包的持续性问题

时间:2016-09-02 22:57:11

标签: r package install

我在R。

中安装软件包car时遇到问题

此主题有以前的帖子,包括this onethis other one

我已经按照我迄今为止遇到的建议而没有成功。我正在使用R版本3.2.2。和RStudio。

这是我得到的消息:

install.packages("car")
Installing package into ‘C:/Users/.../Documents/R/win-library/3.2’
(as ‘lib’ is unspecified)
trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.2/car_2.1-3.zip'
Content type 'application/zip' length 1447213 bytes (1.4 MB)
downloaded 1.4 MB

package ‘car’ successfully unpacked and MD5 sums checked

The downloaded binary packages are in
    C:\Users\...\AppData\Local\Temp\Rtmpc3xr5i\downloaded_packages

如果我检查,

?car
No documentation for ‘car’ in specified packages and libraries:
you could try ‘??car’

我尝试使用Install packages from local zip drives从R安装它,并在C:\Users\...\AppData\Local\Temp\Rtmpc3xr5i\downloaded_packages中查找zip,但结果如下:

library(car)
Error in library.dynam(lib, package, package.lib) : 
  DLL ‘SparseM’ not found: maybe not installed for this architecture?
In addition: Warning message:
package ‘car’ was built under R version 3.2.5 
Error: package or namespace load failed for ‘car’

我甚至在发布OP之前尝试安装SparseM但没有成功:

> install.packages("SparseM")
Installing package into ‘C:/Users/.../Documents/R/win-library/3.2’
(as ‘lib’ is unspecified)
trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.2/SparseM_1.7.zip'
Content type 'application/zip' length 795531 bytes (776 KB)
downloaded 776 KB

package ‘SparseM’ successfully unpacked and MD5 sums checked

The downloaded binary packages are in
    C:\Users\...\AppData\Local\Temp\Rtmpc3xr5i\downloaded_packages
> ?SparseM
No documentation for ‘SparseM’ in specified packages and libraries:
you could try ‘??SparseM’

跟进:

在关于R版本3.2.3的评论之后,我认为只需下载此版本,安装和擦除3.2.2就可以轻松解决。那么问题是RStudio似乎不起作用。我卸载并重新安装了R-studio,现在我在打开R studio时得到了这个:

enter image description here

1 个答案:

答案 0 :(得分:4)

如果不知道您使用的汽车包的版本,很难确切地知道问题的根源是什么。但是,您似乎还没有安装 pbkrtest 的正确版本, Rcmdr 包依赖于此版本。

是否有令人信服的理由不将所有内容升级到当前版本,包括R,所有软件包和RStudio?

最佳,  约翰