New to RStudio, tidyverse won't load (install?)

Recently downloaded R Studio (today)

On MacOS, the version is 1.2.5019.

Simply put, my problem is that tidyverse won't install properly, and therefore won't load itself on my Mac.

My code is

install.packages("tidyverse")
library("tidyverse")

When I install I get messages like

install.packages("tidyverse")
Warning in install.packages :
  dependency ‘knitr’ is not available
also installing the dependencies ‘farver’, ‘scales’, ‘rmarkdown’, ‘ggplot2’, ‘lubridate’, ‘reprex’


  There are binary versions available but the source versions are later:
          binary source needs_compilation
scales     0.4.0  1.1.0              TRUE
rmarkdown    1.0   1.17             FALSE
ggplot2    2.1.0  3.2.1             FALSE
lubridate  1.5.6  1.7.4              TRUE

Do you want to install from sources the packages which need compilation?
y/n: y
Package which is only available in source form, and may need compilation of
  C/C++/Fortran: ‘farver’
Do you want to attempt to install these from sources?
y/n: y

So I say yes because well, not sure what it is I need so yes I'll take all of the packages R wants to give me.

But, it installs (or, tries to install) all this stuff but tidyverse as well as all the other packages (ggplot2, reprex, scales, lubridate) all say they have "non-zero exit status"

What does this mean and how do I install tidyverse properly so as to be able to load it.
When I try to load it, I get the error message:

> library(tidyverse)
Error in library(tidyverse) : there is no package called ‘tidyverse’

Could you post the whole error message? you are omitting the important parts.

I'm only able to post one image right now since I'm a new user

Do you want to install from sources the packages which need compilation?
y/n: y
Package which is only available in source form, and may need compilation of
  C/C++/Fortran: ‘farver’
Do you want to attempt to install these from sources?
y/n: y
installing the source packages ‘farver’, ‘scales’, ‘rmarkdown’, ‘ggplot2’, ‘lubridate’, ‘reprex’, ‘tidyverse’

  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 1250k  100 1250k    0     0      0      0 --:-- 10.9M      0 --:--:-- --:--:-- --:--:-- 11.0M
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
 73  498k   73  367k 100  498k  100  498k    0     0  6116k      0 --:--:-- --:--:-- --:--:-- 6081k
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 3109k  100 3109k    0     0  15.8M      0 --:--:-- --:--:-- --:--:-- 15.8M
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 3129k  100 3129k    0     0  13.4M      0 --:--:-- --:--:-- -- --:--:-- --:--:-- 13.4M
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  439k    0     0 100  439k    0     0  1474k      0 --:--:-- --:--:-- --:--:-- 1479k
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 1027k  100 1027k    0     0  4809k      0 --:--:-- --:--:-- --:--:-- 4803k
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 61647  100 61647    0        0   983k      0 --:--:-- --:--:-- --:--:--  986k
Warning in strptime(xx, f <- "%Y-%m-%d %H:%M:%OS", tz = tz) :
  unknown timezone 'zone/tz/2019c.1.0/zoneinfo/America/Los_Angeles'
* installing *source* package ‘farver’ ...
** package ‘farver’ successfully unpacked and MD5 sums checked
** libs
I/Library/Frameworks/R.framework/Resources/include -DNDEBUG  -I/usr/local/include       -c ColorSpace.cpp -o ColorSpace.o
make: I/Library/Frameworks/R.framework/Resources/include: No such file or directory
make: [ColorSpace.o] Error 1 (ignored)
I/Library/Frameworks/R.framework/Resources/include -DNDEBUG  -I/usr/local/include       -c Comparison.cpp -o Comparison.o
make: I/Library/Frameworks/R.framework/Resources/include: No such file or directory
make: [Comparison.o] Error 1 (ignored)
I/Library/Frameworks/R.framework/Resources/include -DNDEBUG  -I/usr/local/include       -c Conversion.cpp -o Conversion.o
make: I/Library/Frameworks/R.framework/Resources/include: No such file or directory
make: [Conversion.o] Error 1 (ignored)
I/Library/Frameworks/R.framework/Resources/include -DNDEBUG  -I/usr/local/include       -c encode.cpp -o encode.o
make: I/Library/Frameworks/R.framework/Resources/include: No such file or directory
make: [encode.o] Error 1 (ignored)
I/Library/Frameworks/R.framework/Resources/include -DNDEBUG  -I/usr/local/include       -c farver.cpp -o farver.o
make: I/Library/Frameworks/R.framework/Resources/include: No such file or directory
make: [farver.o] Error 1 (ignored)
I/Library/Frameworks/R.framework/Resources/include -DNDEBUG  -I/usr/local/include       -c init.cpp -o init.o
make: I/Library/Frameworks/R.framework/Resources/include: No such file or directory
make: [init.o] Error 1 (ignored)
-dynamiclib -Wl,-headerpad_max_install_names -undefined dynamic_lookup -single_module -multiply_defined suppress -L/Library/Frameworks/R.framework/Resources/lib -L/usr/local/lib -L/usr/local/lib -o farver.so ColorSpace.o Comparison.o Conversion.o encode.o farver.o init.o -F/Library/Frameworks/R.framework/.. -framework R -Wl,-framework -Wl,CoreFoundation
/bin/sh: -dynamiclib: command not found
make: *** [farver.so] Error 127
ERROR: compilation failed for package ‘farver’
* removing ‘/Library/Frameworks/R.framework/Versions/3.2/Resources/library/farver’
Warning in install.packages :
  installation of package ‘farver’ had non-zero exit status
Warning in strptime(xx, f <- "%Y-%m-%d %H:%M:%OS", tz = tz) :
  unknown timezone 'zone/tz/2019c.1.0/zoneinfo/America/Los_Angeles'
ERROR: dependency ‘knitr’ is not available for package ‘rmarkdown’
* removing ‘/Library/Frameworks/R.framework/Versions/3.2/Resources/library/rmarkdown’
Warning in install.packages :
  installation of package ‘rmarkdown’ had non-zero exit status
Warning in strptime(xx, f <- "%Y-%m-%d %H:%M:%OS", tz = tz) :
  unknown timezone 'zone/tz/2019c.1.0/zoneinfo/America/Los_Angeles'
* installing *source* package ‘lubridate’ ...
** package ‘lubridate’ successfully unpacked and MD5 sums checked
** libs
I/Library/Frameworks/R.framework/Resources/include -DNDEBUG -I. -I./cctz/include/ -I./cctz/src/ -I/usr/local/include -I"/Library/Frameworks/R.framework/Versions/3.2/Resources/library/Rcpp/include"      -c RcppExports.cpp -o RcppExports.o
/bin/sh: I/Library/Frameworks/R.framework/Resources/include: No such file or directory
make: [RcppExports.o] Error 127 (ignored)
gcc -arch x86_64 -std=gnu99 -I/Library/Frameworks/R.framework/Resources/include -DNDEBUG -I. -I./cctz/include/ -I./cctz/src/ -I/usr/local/include -I"/Library/Frameworks/R.framework/Versions/3.2/Resources/library/Rcpp/include"   -fPIC  -mtune=core2 -g -O2  -c datetime.c -o datetime.o
gcc -arch x86_64 -std=gnu99 -I/Library/Frameworks/R.framework/Resources/include -DNDEBUG -I. -I./cctz/include/ -I./cctz/src/ -I/usr/local/include -I"/Library/Frameworks/R.framework/Versions/3.2/Resources/library/Rcpp/include"   -fPIC  -mtune=core2 -g -O2  -c period.c -o period.o
gcc -arch x86_64 -std=gnu99 -I/Library/Frameworks/R.framework/Resources/include -DNDEBUG -I. -I./cctz/include/ -I./cctz/src/ -I/usr/local/include -I"/Library/Frameworks/R.framework/Versions/3.2/Resources/library/Rcpp/include"   -fPIC  -mtune=core2 -g -O2  -c tparse.c -o tparse.o
I/Library/Frameworks/R.framework/Resources/include -DNDEBUG -I. -I./cctz/include/ -I./cctz/src/ -I/usr/local/include -I"/Library/Frameworks/R.framework/Versions/3.2/Resources/library/Rcpp/include"      -c update.cpp -o update.o
/bin/sh: I/Library/Frameworks/R.framework/Resources/include: No such file or directory
make: [update.o] Error 127 (ignored)
gcc -arch x86_64 -std=gnu99 -I/Library/Frameworks/R.framework/Resources/include -DNDEBUG -I. -I./cctz/include/ -I./cctz/src/ -I/usr/local/include -I"/Library/Frameworks/R.framework/Versions/3.2/Resources/library/Rcpp/include"   -fPIC  -mtune=core2 -g -O2  -c utils.c -o utils.o
I/Library/Frameworks/R.framework/Resources/include -DNDEBUG -I. -I./cctz/include/ -I./cctz/src/ -I/usr/local/include -I"/Library/Frameworks/R.framework/Versions/3.2/Resources/library/Rcpp/include"      -c cctz/src/time_zone_fixed.cc -o cctz/src/time_zone_fixed.o
/bin/sh: I/Library/Frameworks/R.framework/Resources/include: No such file or directory
make: [cctz/src/time_zone_fixed.o] Error 127 (ignored)
I/Library/Frameworks/R.framework/Resources/include -DNDEBUG -I. -I./cctz/include/ -I./cctz/src/ -I/usr/local/include -I"/Library/Frameworks/R.framework/Versions/3.2/Resources/library/Rcpp/include"      -c cctz/src/time_zone_if.cc -o cctz/src/time_zone_if.o
/bin/sh: I/Library/Frameworks/R.framework/Resources/include: No such file or directory
make: [cctz/src/time_zone_if.o] Error 127 (ignored)
I/Library/Frameworks/R.framework/Resources/include -DNDEBUG -I. -I./cctz/include/ -I./cctz/src/ -I/usr/local/include -I"/Library/Frameworks/R.framework/Versions/3.2/Resources/library/Rcpp/include"      -c cctz/src/time_zone_impl.cc -o cctz/src/time_zone_impl.o
/bin/sh: I/Library/Frameworks/R.framework/Resources/include: No such file or directory
make: [cctz/src/time_zone_impl.o] Error 127 (ignored)
I/Library/Frameworks/R.framework/Resources/include -DNDEBUG -I. -I./cctz/include/ -I./cctz/src/ -I/usr/local/include -I"/Library/Frameworks/R.framework/Versions/3.2/Resources/library/Rcpp/include"      -c cctz/src/time_zone_info.cc -o cctz/src/time_zone_info.o
/bin/sh: I/Library/Frameworks/R.framework/Resources/include: No such file or directory
make: [cctz/src/time_zone_info.o] Error 127 (ignored)
I/Library/Frameworks/R.framework/Resources/include -DNDEBUG -I. -I./cctz/include/ -I./cctz/src/ -I/usr/local/include -I"/Library/Frameworks/R.framework/Versions/3.2/Resources/library/Rcpp/include"      -c cctz/src/time_zone_libc.cc -o cctz/src/time_zone_libc.o
/bin/sh: I/Library/Frameworks/R.framework/Resources/include: No such file or directory
I/Library/Frameworks/R.framework/Resources/include -DNDEBUG -I. -I./cctz/include/ -I./cctz/src/ -I/usr/local/include -I"/Library/Frameworks/R.framework/Versions/3.2/Resources/library/Rcpp/include"      -c cctz/src/time_zone_lookup.cc -o cctz/src/time_zone_lookup.o
make: [cctz/src/time_zone_libc.o] Error 127 (ignored)
/bin/sh: I/Library/Frameworks/R.framework/Resources/include: No such file or directory
I/Library/Frameworks/R.framework/Resources/include -DNDEBUG -I. -I./cctz/include/ -I./cctz/src/ -I/usr/local/include -I"/Library/Frameworks/R.framework/Versions/3.2/Resources/library/Rcpp/include"      -c cctz/src/time_zone_posix.cc -o cctz/src/time_zone_posix.o
make: [cctz/src/time_zone_lookup.o] Error 127 (ignored)
/bin/sh: I/Library/Frameworks/R.framework/Resources/include: No such file or directory
make: [cctz/src/time_zone_posix.o] Error 127 (ignored)
ar rcs libcctz.a ./cctz/src/time_zone_fixed.o ./cctz/src/time_zone_if.o ./cctz/src/time_zone_impl.o ./cctz/src/time_zone_info.o ./cctz/src/time_zone_libc.o ./cctz/src/time_zone_lookup.o ./cctz/src/time_zone_posix.o 
ar: ./cctz/src/time_zone_fixed.o: No such file or directory
ar: ./cctz/src/time_zone_if.o: No such file or directory
ar: ./cctz/src/time_zone_impl.o: No such file or directory
ar: ./cctz/src/time_zone_info.o: No such file or directory
ar: ./cctz/src/time_zone_libc.o: No such file or directory
ar: ./cctz/src/time_zone_lookup.o: No such file or directory
ar: ./cctz/src/time_zone_posix.o: No such file or directory
make: *** [libcctz.a] Error 1
ERROR: compilation failed for package ‘lubridate’
* removing ‘/Library/Frameworks/R.framework/Versions/3.2/Resources/library/lubridate’
* restoring previous ‘/Library/Frameworks/R.framework/Versions/3.2/Resources/library/lubridate’
Warning in install.packages :
  installation of package ‘lubridate’ had non-zero exit status
Warning in strptime(xx, f <- "%Y-%m-%d %H:%M:%OS", tz = tz) :
  unknown timezone 'zone/tz/2019c.1.0/zoneinfo/America/Los_Angeles'
ERROR: dependency ‘farver’ is not available for package ‘scales’
* removing ‘/Library/Frameworks/R.framework/Versions/3.2/Resources/library/scales’
Warning in install.packages :
  installation of package ‘scales’ had non-zero exit status
Warning in strptime(xx, f <- "%Y-%m-%d %H:%M:%OS", tz = tz) :
  unknown timezone 'zone/tz/2019c.1.0/zoneinfo/America/Los_Angeles'
ERROR: dependency ‘rmarkdown’ is not available for package ‘reprex’
* removing ‘/Library/Frameworks/R.framework/Versions/3.2/Resources/library/reprex’
Warning in install.packages :
  installation of package ‘reprex’ had non-zero exit status
Warning in strptime(xx, f <- "%Y-%m-%d %H:%M:%OS", tz = tz) :
  unknown timezone 'zone/tz/2019c.1.0/zoneinfo/America/Los_Angeles'
ERROR: dependency ‘scales’ is not available for package ‘ggplot2’
* removing ‘/Library/Frameworks/R.framework/Versions/3.2/Resources/library/ggplot2’
Warning in install.packages :
  installation of package ‘ggplot2’ had non-zero exit status
Warning in strptime(xx, f <- "%Y-%m-%d %H:%M:%OS", tz = tz) :
  unknown timezone 'zone/tz/2019c.1.0/zoneinfo/America/Los_Angeles'
ERROR: dependencies ‘ggplot2’, ‘reprex’ are not available for package ‘tidyverse’
* removing ‘/Library/Frameworks/R.framework/Versions/3.2/Resources/library/tidyverse’
Warning in install.packages :
  installation of package ‘tidyverse’ had non-zero exit status

The downloaded source packages are in
	‘/private/var/folders/57/rbgxd_r13zv67p0gvc5ysnfc0000gn/T/RtmpjxPtLG/downloaded_packages’
> library("tidyverse")
Error in library("tidyverse") : there is no package called ‘tidyverse’
> library("tidyverse")

here is a copypaste of the whole thing

You are having issues with the compiler, the first thing to try would be to install/update xcode in your system (this is not an R package), but if you don't need the latest versions of those packages, then you can answer "no" when asked to install from source and you will get the older binary versions that don't need compilation.

after my computer taking forever to download xcode and opening it up, I'm getting pretty much the same error message as far as I can tell

> install.packages("tidyverse")
Warning in install.packages :
  dependency ‘knitr’ is not available
also installing the dependencies ‘farver’, ‘scales’, ‘rmarkdown’, ‘ggplot2’, ‘lubridate’, ‘reprex’


  There are binary versions available but the source versions are later:
          binary source needs_compilation
scales     0.4.0  1.1.0              TRUE
rmarkdown    1.0   1.17             FALSE
ggplot2    2.1.0  3.2.1             FALSE
lubridate  1.5.6  1.7.4              TRUE

Do you want to install from sources the packages which need compilation?
y/n: no
Package which is only available in source form, and may need compilation of
  C/C++/Fortran: ‘farver’
Do you want to attempt to install these from sources?
y/n: no
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  269k  100  269k    0     0   895k      0 --:--:-- --:--:-- --:--:--  893k
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  633k  100  633k    0     0  5420k      0 --:--:-- --:--:-- --:--:--   - 5464k

The downloaded binary packages are in
	/var/folders/57/rbgxd_r13zv67p0gvc5ysnfc0000gn/T//Rtmp0LVRUT/downloaded_packages
installing the source packages ‘rmarkdown’, ‘ggplot2’, ‘reprex’, ‘tidyverse’

  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 3109k  100 3109k    0     0   0  9377k      0 --:--:-- --:--:-- --:--:-- 9393k
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
 67 3129100 3129k  107 2114k    0 3129k    0     0  9269k      0 --:--:-- --:--:-- --:--:-- 9259k
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 1027k  100 1027k    0     0  6932k      0 --:--:-- --:--:-- --:--:-- 6945k
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 61647  1000 61647    0     0  1179k      0 --:--:-- --:--:-- --:--:-- 1180k
Warning in strptime(xx, f <- "%Y-%m-%d %H:%M:%OS", tz = tz) :
  unknown timezone 'zone/tz/2019c.1.0/zoneinfo/America/Los_Angeles'
ERROR: dependency ‘knitr’ is not available for package ‘rmarkdown’
* removing ‘/Library/Frameworks/R.framework/Versions/3.2/Resources/library/rmarkdown’
Warning in install.packages :
  installation of package ‘rmarkdown’ had non-zero exit status
Warning in strptime(xx, f <- "%Y-%m-%d %H:%M:%OS", tz = tz) :
  unknown timezone 'zone/tz/2019c.1.0/zoneinfo/America/Los_Angeles'
* installing *source* package ‘ggplot2’ ...
** package ‘ggplot2’ successfully unpacked and MD5 sums checked
** R
** data
*** moving datasets to lazyload DB
** inst
** preparing package for lazy loading
Error in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]) : 
  namespace ‘scales’ 0.4.0 is being loaded, but >= 0.5.0 is required
ERROR: lazy loading failed for package ‘ggplot2’
* removing ‘/Library/Frameworks/R.framework/Versions/3.2/Resources/library/ggplot2’
Warning in install.packages :
  installation of package ‘ggplot2’ had non-zero exit status
Warning in strptime(xx, f <- "%Y-%m-%d %H:%M:%OS", tz = tz) :
  unknown timezone 'zone/tz/2019c.1.0/zoneinfo/America/Los_Angeles'
ERROR: dependency ‘rmarkdown’ is not available for package ‘reprex’
* removing ‘/Library/Frameworks/R.framework/Versions/3.2/Resources/library/reprex’
Warning in install.packages :
  installation of package ‘reprex’ had non-zero exit status
Warning in strptime(xx, f <- "%Y-%m-%d %H:%M:%OS", tz = tz) :
  unknown timezone 'zone/tz/2019c.1.0/zoneinfo/America/Los_Angeles'
ERROR: dependencies ‘ggplot2’, ‘reprex’ are not available for package ‘tidyverse’
* removing ‘/Library/Frameworks/R.framework/Versions/3.2/Resources/library/tidyverse’
Warning in install.packages :
  installation of package ‘tidyverse’ had non-zero exit status

The downloaded source packages are in
	‘/private/var/folders/57/rbgxd_r13zv67p0gvc5ysnfc0000gn/T/Rtmp0LVRUT/downloaded_packages’
> library(tidyverse)
Error in library(tidyverse) : there is no package called ‘tidyverse’
> 

If you are going to try with xcode then answer "yes" to see if it is able to compile now.

pretty similar error message with that

> install.packages("tidyverse")
Warning in install.packages :
  dependency ‘knitr’ is not available
also installing the dependencies ‘farver’, ‘scales’, ‘rmarkdown’, ‘ggplot2’, ‘lubridate’, ‘reprex’


  There are binary versions available but the source versions are later:
          binary source needs_compilation
scales     0.4.0  1.1.0              TRUE
rmarkdown    1.0   1.17             FALSE
ggplot2    2.1.0  3.2.1             FALSE
lubridate  1.5.6  1.7.4              TRUE

Do you want to install from sources the packages which need compilation?
y/n: yes
Package which is only available in source form, and may need compilation of
  C/C++/Fortran: ‘farver’
Do you want to attempt to install these from sources?
y/n: yes
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  269k  100  269k    0     0   925k      0 --:--:-- --:--:-- --:--:--  927k
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  633k  100  633k    0     0  2340k      0 --:--:-- --:--:-- --:--:-- 2339k

The downloaded binary packages are in
	/var/folders/57/rbgxd_r13zv67p0gvc5ysnfc0000gn/T//Rtmp0LVRUT/downloaded_packages
installing the source packages ‘rmarkdown’, ‘ggplot2’, ‘reprex’, ‘tidyverse’

  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
 76 3109k 100 3109k  100 3109k    0     0  4058k      0 --:--:-- --:--:-- --:-- --:--:-- 
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 3129k  100      3129k    0     0  5335k      0 --:--:-- --:--:-- --:--:--    5340k
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 1027k  100 1027k    0     0  4592k      0 --:--:-- --:--:-- --:--:--     0
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 61647  100 61647    0     0      0   358k      0 --:--:-- --:--:-- --:--:--  360k
Warning in strptime(xx, f <- "%Y-%m-%d %H:%M:%OS", tz = tz) :
  unknown timezone 'zone/tz/2019c.1.0/zoneinfo/America/Los_Angeles'
ERROR: dependency ‘knitr’ is not available for package ‘rmarkdown’
* removing ‘/Library/Frameworks/R.framework/Versions/3.2/Resources/library/rmarkdown’
Warning in install.packages :
  installation of package ‘rmarkdown’ had non-zero exit status
Warning in strptime(xx, f <- "%Y-%m-%d %H:%M:%OS", tz = tz) :
  unknown timezone 'zone/tz/2019c.1.0/zoneinfo/America/Los_Angeles'
* installing *source* package ‘ggplot2’ ...
** package ‘ggplot2’ successfully unpacked and MD5 sums checked
** R
** data
*** moving datasets to lazyload DB
** inst
** preparing package for lazy loading
Error in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]) : 
  namespace ‘scales’ 0.4.0 is being loaded, but >= 0.5.0 is required
ERROR: lazy loading failed for package ‘ggplot2’
* removing ‘/Library/Frameworks/R.framework/Versions/3.2/Resources/library/ggplot2’
Warning in install.packages :
  installation of package ‘ggplot2’ had non-zero exit status
Warning in strptime(xx, f <- "%Y-%m-%d %H:%M:%OS", tz = tz) :
  unknown timezone 'zone/tz/2019c.1.0/zoneinfo/America/Los_Angeles'
ERROR: dependency ‘rmarkdown’ is not available for package ‘reprex’
* removing ‘/Library/Frameworks/R.framework/Versions/3.2/Resources/library/reprex’
Warning in install.packages :
  installation of package ‘reprex’ had non-zero exit status
Warning in strptime(xx, f <- "%Y-%m-%d %H:%M:%OS", tz = tz) :
  unknown timezone 'zone/tz/2019c.1.0/zoneinfo/America/Los_Angeles'
ERROR: dependencies ‘ggplot2’, ‘reprex’ are not available for package ‘tidyverse’
* removing ‘/Library/Frameworks/R.framework/Versions/3.2/Resources/library/tidyverse’
Warning in install.packages :
  installation of package ‘tidyverse’ had non-zero exit status

The downloaded source packages are in
	‘/private/var/folders/57/rbgxd_r13zv67p0gvc5ysnfc0000gn/T/Rtmp0LVRUT/downloaded_packages’
> library(tidyverse)
Error in library(tidyverse) : there is no package called ‘tidyverse’

I think you might have an old version of R installed (this is different than RStudio). I saw a reference to R 3.2 somewhere in your error messages.

The latest version of R is 3.6.1 and you can download it here: https://cran.r-project.org/

After you update R, then try installing the packages.

1 Like

huzzah! much thanks to you it finally has loaded!

I needed to install the new R and XQuartz and then reload to reset it all

Glad it worked!

If your question's been answered (even by you!), would you mind choosing a solution? It helps other people see which questions still need help, or find solutions if they have similar problems. Here’s how to do it:

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