> 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 'https://cran.rstudio.com/src/contrib/car_3.0-4.tar.gz'
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
‘/private/var/folders/xh/4fz88dl542d6vb38jx438lmh0000gn/T/RtmpdNGZQ9/downloaded_packages’
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)