how to install the "car" package in my RStudio?

> install.packages("car")

  There is a binary version available but the source version is later:
    binary source needs_compilation
car  3.0-3  3.0-4             FALSE

installing the source package ‘car’

trying URL ''
Content type 'application/x-gzip' length 504216 bytes (492 KB)
downloaded 492 KB

* installing *source* package ‘car’ ...
** package ‘car’ successfully unpacked and MD5 sums checked
** R
** inst
** byte-compile and prepare package for lazy loading
Error in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]) : 
  there is no package called ‘openxlsx’
ERROR: lazy loading failed for package ‘car’
* removing ‘/Library/Frameworks/R.framework/Versions/3.5/Resources/library/car’

The downloaded source packages are in

I don't know what's going wrong with my R ? is there having someone who can help me to figure out how to install this package in my R?
this is the version of R :
R version 3.5.3 (2019-03-11) -- "Great Truth"
Copyright (C) 2019 The R Foundation for Statistical Computing
Platform: x86_64-apple-darwin15.6.0 (64-bit)

The error message says that there is no package openxlsx. Try installing that first.

1 Like

thanks for your help ~ :relaxed:
I have one more question ~ if you have free time to answer me ~
I want to use this PoEdata package, but why I couldn't find it ~
Error in library(PoEdata) : there is no package called ‘PoEdata’

The PoEdata package is not on CRAN it is on github. The instructions in the repository are:

The package works best with RStudio. To install the "PoEdata" package, type the following script lines in the Console window of RStudio:

 install.packages("devtools")  # if not already installed
1 Like

Just for reference, there are two related questions posted very recently on car :package: installation


thanks !!!

:relaxed: now I could run it without any problem ~

Hey there,
I have the same problem but even after installing PoEdata my 'car-non-zero exit status' still exists. I don't know what to do anymore. Any other suggestions?

Hi welcome,
This is a different question, please ask it on a new topic providing a proper REPRoducible EXample (reprex)

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.