cant install ggplot2

struggling to instal ggplot2, tried loads of solutions i found online and none seem to be working.

install.packages("ggplot2")

There is a binary version available but the
source version is later:
binary source needs_compilation
ggplot2 3.3.0 3.3.1 FALSE

installing the source package ‘ggplot2’

trying URL 'https://cran.rstudio.com/src/contrib/ggplot2_3.3.1.tar.gz'
Content type 'application/x-gzip' length 3035612 bytes (2.9 MB)

downloaded 2.9 MB

dyld: lazy symbol binding failed: Symbol not found: _utimensat
Referenced from: /Library/Frameworks/R.framework/Versions/4.0/Resources/lib/libR.dylib (which was built for Mac OS X 10.13)
Expected in: /usr/lib/libSystem.B.dylib

dyld: Symbol not found: _utimensat
Referenced from: /Library/Frameworks/R.framework/Versions/4.0/Resources/lib/libR.dylib (which was built for Mac OS X 10.13)
Expected in: /usr/lib/libSystem.B.dylib

/Library/Frameworks/R.framework/Resources/bin/INSTALL: line 34: 5904 Done echo 'tools:::.install_packages()'
5905 Abort trap: 6 | R_DEFAULT_PACKAGES= LC_COLLATE=C "${R_HOME}/bin/R" myArgs --no-echo --args {args}
Warning in install.packages :
installation of package ‘ggplot2’ had non-zero exit status

The downloaded source packages are in
‘/private/var/folders/m8/b0l3kcns7pj3t8m68gbwrk640000gn/T/RtmpCtcKb0/downloaded_packages’

If you are failing to compile from source on the Mac, why not accept the binary ?

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