ropenxlsx

How to repair R car package failure to load?


After attempting to install R openxlsx package, car package now fails to load. How do I repair R car package load error (R version 3.5.2.)?

I have checked imports/dependencies for the car package - openxlsx present.

So how the message below can be fixed?

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


Solution

  • Try install.packages("openxlsx").

    Dependencies have to be mentioned explicitly when you create a package, and it happens all the time that authors forget some.