Hey,
I tried many, many times to install my package "car". It literally drives me crazy for days that I can't fix it by myself.
This is what I tried:
install.packages("car", dependencies = TRUE)
Everything seems fine until now
The downloaded binary packages are in
/var/folders/47/f8jhnb1x4_s154gd7x181kpc0000gn/T//RtmpjJkprs/downloaded_packages
But when I want to load the package with "library(car)" it shows me this in red:
Fehler: package or namespace load failed for ‘car’ in dyn.load(file, DLLpath = DLLpath, ...):
kann shared object '/Library/Frameworks/R.framework/Versions/4.0/Resources/library/Rcpp/libs/Rcpp.so' nicht laden:
dlopen(/Library/Frameworks/R.framework/Versions/4.0/Resources/library/Rcpp/libs/Rcpp.so, 6): Symbol not found: _EXTPTR_PTR
Referenced from: /Library/Frameworks/R.framework/Versions/4.0/Resources/library/Rcpp/libs/Rcpp.so
Expected in: /Library/Frameworks/R.framework/Resources/lib/libR.dylib
in /Library/Frameworks/R.framework/Versions/4.0/Resources/library/Rcpp/libs/Rcpp.so
Zusätzlich: Warnmeldung:
Paket ‘car’ wurde unter R Version 4.0.2 erstellt
I have read here in the community that I need to install the Rcpp package and that is what I tried as well, as seen below.
> install.packages("Rcpp",dependencies = TRUE)
versuche URL 'https://cran.rstudio.com/bin/macosx/contrib/4.0/Rcpp_1.0.5.tgz'
Content type 'application/x-gzip' length 3215939 bytes (3.1 MB)
==================================================
downloaded 3.1 MB
The downloaded binary packages are in
/var/folders/47/f8jhnb1x4_s154gd7x181kpc0000gn/T//RtmpjJkprs/downloaded_packages
> library(Rcpp)
Fehler: package or namespace load failed for ‘Rcpp’ in dyn.load(file, DLLpath = DLLpath, ...):
kann shared object '/Library/Frameworks/R.framework/Versions/4.0/Resources/library/Rcpp/libs/Rcpp.so' nicht laden:
dlopen(/Library/Frameworks/R.framework/Versions/4.0/Resources/library/Rcpp/libs/Rcpp.so, 6): Symbol not found: _EXTPTR_PTR
Referenced from: /Library/Frameworks/R.framework/Versions/4.0/Resources/library/Rcpp/libs/Rcpp.so
Expected in: /Library/Frameworks/R.framework/Resources/lib/libR.dylib
in /Library/Frameworks/R.framework/Versions/4.0/Resources/library/Rcpp/libs/Rcpp.so
Zusätzlich: Warnmeldung:
Paket ‘Rcpp’ wurde unter R Version 4.0.2 erstellt
and when I then tried to use library(car) again, it showed me the same error message as before...
I have tried now so many things and I really have no idea what to do anymore, but it must have something to do with the Rcpp package!
Can anyone help me with this issue, you will be my hero!
Thanks in advance,
Fynn
(Sorry that the error messages are in German )