R, car package unable to load

我的未来我决定 提交于 2019-11-26 17:09:34

问题


I'm new with R, and I'm having some trouble loading the car library. I use Windows 8.1 (64 bit) and i'm working in 32 bit R environment. I downloaded the library just fine, but when i try to load the car library using library(car) the message i get is:

Error in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]) :
there is no package called ‘quantreg’
Error: package or namespace load failed for ‘car’

This message came up asking for several other libraries besides quantreg. I downloaded some of those other libraries in the hope that it would be enough to run car, but it doesn't stop asking for more libraries.

Has anyone had the same issue? This also happened to some people I know, using different operating systems, mostly Windows, but also Linux.


回答1:


It seems that you did not install the dependencies automatically when you installed car. I'm assuming that you tried installing with Rstudio, which does not automatically install dependencies.

This SO post and this one should help you to install them automatically.

Try reinstalling with the command install.packages("car",dependencies=TRUE).

Additionally, in the future you can check the CRAN page to see the depends, imports, suggests, etc.



来源:https://stackoverflow.com/questions/31928401/r-car-package-unable-to-load

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!