install.packages – R: package car not loading even though carData was installed
I have been struggling to load the car package today, and given that I am rather new to R, I can’t seem to make sense of the issue. The issue is that even after installing the package necessary (carData), there is still an error message asking me to install the the package when I try loading car.
I have installed the carData package using
install.packages(“carData”)
I also tried
install.packages(“carData”, dependencies=TRUE).
R responds by asking me to restart R before installing, I tried both restarting and not restarting to see if the trouble is due to that. The output after loading the package is the following:
trying URL 'https://cran.rstudio.com/bin/macosx/big-sur-arm64/contrib/4.2/carData_3.0-5.tgz'
Content type 'application/x-gzip' length 1821185 bytes (1.7 MB)
==================================================
downloaded 1.7 MB
The downloaded binary packages are in
/var/folders/hv/v6hfqmxj4j57kq_rbw9zfnzw0000gn/T//Rtmp4vfcmV/downloaded_packages
So far so good, but then when I go for
library(car)
I get:
Loading required package: carData
Does anyone have a clue what I could do to fix it? I am running R studio version 2023.03.0+386.
Read more here: Source link
