[英]Persistent problems installing the car package in R
我在R中安裝打包car
遇到問題。
到目前為止,我一直遵循我所提出的建議,但沒有成功。 我正在使用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’
我確實嘗試安裝SparseM
甚至在發布OP之前都沒有成功:
> 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時會看到以下信息:
不知道您使用的是哪個版本的汽車包裝,就很難確切知道問題的根源。 但是,您似乎未安裝Rcmdr軟件包所依賴的pbkrtest的正確版本。
是否有令人信服的理由不將所有內容都升級到當前版本,包括R,所有軟件包和RStudio?
最好,約翰
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.