Error: loading package or namespace failed for "car"

I can not load the car package in R. I tried to reinstall using

install.packages("car",dependencies=TRUE)

from both R and RStudio. I tried installing quantregas indicated in another post and then installing it again. The installation seems successful, but simply cannot download the program.

Here's the complete error:

Error in loadNamespace (j <- I [[1L]], c (lib.loc, .libPaths ()), versionCheck = vI [[j]]): there is no package called "pbkrtest" Also: Warning message: batch the car was built under R version 3.2.3
    Error: loading a package or namespace for "car

+4
source share
2 answers

It was simply called up on the community homepage. I cannot take responsibility for the answer, but give it a real non-comment:

You must upgrade R first. Then run update.packages(checkBuilt = TRUE). Finally, try again install.packages("car", dependencies=TRUE). If this does not work, try installing the pbkrtest package first. - user3710546

Given that the current version of R at the time the question was posted was 3.2.3, I think it was a good answer.

0
source

Instead update.package(checkBuilt = TRUE) should beupdate.packages(checkBuilt = TRUE)

-3
source

Source: https://habr.com/ru/post/1626504/


All Articles