Car package not found by R (failed to load)

fabiof picture fabiof · Jan 9, 2015 · Viewed 69.6k times · Source

I am am trying to load a simple dataset using:

library(car)

but I get the following error:

Error in library("car") : there is no package called 'car'

Does anyone have an idea why this happens and how to solve it?

Answer

Phil picture Phil · Jan 9, 2015

If you don't currently use an IDE (or even if you do), the following will install the package:

install.packages("car")

Before then running

library("car")

You should heed @Iris's advice and use a RStudio if you don't already to manage just this sort of task.