Trying to install ggplot2 in R Studio. Have updated to the latest version, uninstalled/reinstalled, as well as tried to to install others like devtools, tidyverse, broom, but they are all giving me messages after like, Warning in install.packages :
** installation of package ‘vdiffr’ had non-zero exit status** The downloaded source packages are in
** ‘/private/var/folders/qt/hkz_ngxs4qxg19nmzrwyxqxc0000gn/T/RtmpQQVvJv/downloaded_packages’**
I have attempted saying type = "source" or dependencies= TRUE in install but that also doesn't work. Would love any advice or help.
install.packages("ggplot2")
also installing the dependency ‘isoband’
There is a binary version available but the source version is later:
binary source needs_compilation
ggplot2 2.2.1 3.3.5 FALSE
Package which is only available in source form, and may need compilation of
C/C++/Fortran: ‘isoband’
Do you want to attempt to install these from sources?
y/n: y
installing the source packages ‘isoband’, ‘ggplot2’
trying URL *[had to take out because I'm a new user]*
Content type 'application/x-gzip' length 1671911 bytes (1.6 MB)
==================================================
downloaded 1.6 MB
trying URL
Content type 'application/x-gzip' length 3063309 bytes (2.9 MB)
==================================================
downloaded 2.9 MB
Warning in strptime(xx, f <- "%Y-%m-%d %H:%M:%OS", tz = tz) :
unknown timezone 'default/America/New_York'
* installing *source* package ‘isoband’ ...
** package ‘isoband’ successfully unpacked and MD5 sums checked
** libs
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
ERROR: compilation failed for package ‘isoband’
* removing ‘/Library/Frameworks/R.framework/Versions/3.3/Resources/library/isoband’
Warning in install.packages :
installation of package ‘isoband’ had non-zero exit status
Warning in strptime(xx, f <- "%Y-%m-%d %H:%M:%OS", tz = tz) :
unknown timezone 'default/America/New_York'
ERROR: dependency ‘isoband’ is not available for package ‘ggplot2’
* removing ‘/Library/Frameworks/R.framework/Versions/3.3/Resources/library/ggplot2’
Warning in install.packages :
installation of package ‘ggplot2’ had non-zero exit status
The downloaded source packages are in
‘/private/var/folders/qt/hkz_ngxs4qxg19nmzrwyxqxc0000gn/T/RtmpxL3HUy/downloaded_packages’
sessionInfo()
R version 3.3.3 (2017-03-06)
Platform: x86_64-apple-darwin13.4.0 (64-bit)
Running under: macOS 10.15.7
locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8
attached base packages:
[1] stats graphics grDevices utils datasets methods base
loaded via a namespace (and not attached):
[1] htmltools_0.5.1.1 tools_3.3.3 yaml_2.2.1 rmarkdown_2.9 knitr_1.33
[6] xfun_0.24 digest_0.6.13 rlang_0.4.11 evaluate_0.14
You are using a very old R version so you are forced to compile packages from source, for compiling packages in macOS you need to install Xcode in your system (not in R) and the recommended development tools for macOS systems. https://cran.r-project.org/bin/macosx/tools/
Although, I would strongly recommend updating your R version to the latest one 4.1.0