When I try to load the 'car' package I get this error:
library(car)
Error in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]) :
namespace 'nlme' 3.1-122 is already loaded, but >= 3.1.123 is required
Error: package or namespace load failed for 'car'
But when I run update.packages()
there is nothing to update. I'm using MRO 3.2.3 if that matters.
I had the same problem and solved it simply by installing
nlme_3.1-123.tar.gz
from https://cran.r-project.org/src/contrib/Archive/nlme/The ultimate cause of your problem is most likely that MRO defaults to a static repository:
Try
or possibly
(if you get a
type == "both" cannot be used ...
error).Another possible source of problems with new versions of recommended packages is that one may have the old version installed in a system-level package directory, while the new version is installed in a user-level directory; check the results of
and consider adding something like
lib=.libPaths()[2]
to yourinstall.packages()
call.