tidyverse installing Issues

Error Information:

> install.packages("tidyverse")
also installing the dependencies ‘rlang’, ‘processx’, ‘cli’, ‘dplyr’, ‘lifecycle’, ‘tidyselect’, ‘vctrs’, ‘callr’, ‘broom’, ‘dbplyr’, ‘dtplyr’, ‘ggplot2’, ‘googlesheets4’, ‘modelr’, ‘reprex’, ‘rvest’


  There are binary versions available but the source versions are later:
              binary source needs_compilation
rlang          1.0.2  1.0.6              TRUE
processx       3.5.3  3.8.0              TRUE
cli            3.2.0  3.4.1              TRUE
dplyr          1.0.8 1.0.10              TRUE
lifecycle      1.0.1  1.0.3             FALSE
tidyselect     1.1.2  1.2.0             FALSE
vctrs          0.4.0  0.5.0              TRUE
callr          3.7.0  3.7.2             FALSE
broom         0.7.12  1.0.1             FALSE
dbplyr         2.1.1  2.2.1             FALSE
dtplyr         1.2.1  1.2.2             FALSE
ggplot2        3.3.5  3.3.6             FALSE
googlesheets4  1.0.0  1.0.1             FALSE
modelr         0.1.8  0.1.9             FALSE
reprex         2.0.1  2.0.2             FALSE
rvest          1.0.2  1.0.3             FALSE
tidyverse      1.3.1  1.3.2             FALSE

Do you want to install from sources the packages which need compilation? (Yes/no/cancel) no
trying URL 'https://cran.rstudio.com/bin/macosx/contrib/4.0/rlang_1.0.2.tgz'
Content type 'application/x-gzip' length 1777779 bytes (1.7 MB)
==================================================
downloaded 1.7 MB

trying URL 'https://cran.rstudio.com/bin/macosx/contrib/4.0/processx_3.5.3.tgz'
Content type 'application/x-gzip' length 300637 bytes (293 KB)
==================================================
downloaded 293 KB

trying URL 'https://cran.rstudio.com/bin/macosx/contrib/4.0/cli_3.2.0.tgz'
Content type 'application/x-gzip' length 1151378 bytes (1.1 MB)
==================================================
downloaded 1.1 MB

trying URL 'https://cran.rstudio.com/bin/macosx/contrib/4.0/dplyr_1.0.8.tgz'
Content type 'application/x-gzip' length 1296204 bytes (1.2 MB)
==================================================
downloaded 1.2 MB

trying URL 'https://cran.rstudio.com/bin/macosx/contrib/4.0/vctrs_0.4.0.tgz'
Content type 'application/x-gzip' length 1729317 bytes (1.6 MB)
==================================================
downloaded 1.6 MB


The downloaded binary packages are in
	/var/folders/j9/wzf8x3m95zq_cjbpvk8qf6s40000gn/T//Rtmp8Sb1bj/downloaded_packages
installing the source packages ‘lifecycle’, ‘tidyselect’, ‘callr’, ‘broom’, ‘dbplyr’, ‘dtplyr’, ‘ggplot2’, ‘googlesheets4’, ‘modelr’, ‘reprex’, ‘rvest’, ‘tidyverse’

trying URL 'https://cran.rstudio.com/src/contrib/lifecycle_1.0.3.tar.gz'
Content type 'application/x-gzip' length 106854 bytes (104 KB)
==================================================
downloaded 104 KB

trying URL 'https://cran.rstudio.com/src/contrib/tidyselect_1.2.0.tar.gz'
Content type 'application/x-gzip' length 101498 bytes (99 KB)
==================================================
downloaded 99 KB

trying URL 'https://cran.rstudio.com/src/contrib/callr_3.7.2.tar.gz'
Content type 'application/x-gzip' length 94549 bytes (92 KB)
==================================================
downloaded 92 KB

trying URL 'https://cran.rstudio.com/src/contrib/broom_1.0.1.tar.gz'
Content type 'application/x-gzip' length 642253 bytes (627 KB)
==================================================
downloaded 627 KB

trying URL 'https://cran.rstudio.com/src/contrib/dbplyr_2.2.1.tar.gz'
Content type 'application/x-gzip' length 670569 bytes (654 KB)
==================================================
downloaded 654 KB

trying URL 'https://cran.rstudio.com/src/contrib/dtplyr_1.2.2.tar.gz'
Content type 'application/x-gzip' length 297692 bytes (290 KB)
==================================================
downloaded 290 KB

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

trying URL 'https://cran.rstudio.com/src/contrib/googlesheets4_1.0.1.tar.gz'
Content type 'application/x-gzip' length 223314 bytes (218 KB)
==================================================
downloaded 218 KB

trying URL 'https://cran.rstudio.com/src/contrib/modelr_0.1.9.tar.gz'
Content type 'application/x-gzip' length 121454 bytes (118 KB)
==================================================
downloaded 118 KB

trying URL 'https://cran.rstudio.com/src/contrib/reprex_2.0.2.tar.gz'
Content type 'application/x-gzip' length 1088076 bytes (1.0 MB)
==================================================
downloaded 1.0 MB

trying URL 'https://cran.rstudio.com/src/contrib/rvest_1.0.3.tar.gz'
Content type 'application/x-gzip' length 94659 bytes (92 KB)
==================================================
downloaded 92 KB

trying URL 'https://cran.rstudio.com/src/contrib/tidyverse_1.3.2.tar.gz'
Content type 'application/x-gzip' length 702514 bytes (686 KB)
==================================================
downloaded 686 KB

* installing *source* package ‘lifecycle’ ...
** package ‘lifecycle’ successfully unpacked and MD5 sums checked
** using staged installation
** R
** inst
** byte-compile and prepare package for lazy loading
Error in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]) : 
  namespace ‘rlang’ 1.0.2 is being loaded, but >= 1.0.6 is required
Calls: <Anonymous> ... withCallingHandlers -> loadNamespace -> namespaceImport -> loadNamespace
Execution halted
ERROR: lazy loading failed for package ‘lifecycle’
* removing ‘/Library/Frameworks/R.framework/Versions/4.0/Resources/library/lifecycle’
* restoring previous ‘/Library/Frameworks/R.framework/Versions/4.0/Resources/library/lifecycle’
Warning in install.packages :
  installation of package ‘lifecycle’ had non-zero exit status
* installing *source* package ‘callr’ ...
** package ‘callr’ successfully unpacked and MD5 sums checked
** using staged installation
** R
** inst
** byte-compile and prepare package for lazy loading
Error in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]) : 
  namespace ‘processx’ 3.5.3 is being loaded, but >= 3.6.1 is required
Calls: <Anonymous> ... namespaceImportFrom -> asNamespace -> loadNamespace
Execution halted
ERROR: lazy loading failed for package ‘callr’
* removing ‘/Library/Frameworks/R.framework/Versions/4.0/Resources/library/callr’
Warning in install.packages :
  installation of package ‘callr’ had non-zero exit status
* installing *source* package ‘ggplot2’ ...
** package ‘ggplot2’ successfully unpacked and MD5 sums checked
** using staged installation
** R
** data
*** moving datasets to lazyload DB
** inst
** byte-compile and prepare package for lazy loading
Error in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]) : 
  namespace ‘lifecycle’ 0.2.0 is already loaded, but >= 1.0.0 is required
Calls: <Anonymous> ... namespaceImportFrom -> asNamespace -> loadNamespace
Execution halted
ERROR: lazy loading failed for package ‘ggplot2’
* removing ‘/Library/Frameworks/R.framework/Versions/4.0/Resources/library/ggplot2’
Warning in install.packages :
  installation of package ‘ggplot2’ had non-zero exit status
* installing *source* package ‘googlesheets4’ ...
** package ‘googlesheets4’ successfully unpacked and MD5 sums checked
** using staged installation
** R
** inst
** byte-compile and prepare package for lazy loading
Warning: replacing previous import ‘lifecycle::last_warnings’ by ‘rlang::last_warnings’ when loading ‘pillar’
Error in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]) : 
  namespace ‘lifecycle’ 0.2.0 is already loaded, but >= 1.0.0 is required
Calls: <Anonymous> ... namespaceImportFrom -> asNamespace -> loadNamespace
Execution halted
ERROR: lazy loading failed for package ‘googlesheets4’
* removing ‘/Library/Frameworks/R.framework/Versions/4.0/Resources/library/googlesheets4’
Warning in install.packages :
  installation of package ‘googlesheets4’ had non-zero exit status
* installing *source* package ‘tidyselect’ ...
** package ‘tidyselect’ successfully unpacked and MD5 sums checked
** using staged installation
** R
** inst
** byte-compile and prepare package for lazy loading
Error in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]) : 
  namespace ‘rlang’ 1.0.2 is being loaded, but >= 1.0.4 is required
Calls: <Anonymous> ... withCallingHandlers -> loadNamespace -> namespaceImport -> loadNamespace
Execution halted
ERROR: lazy loading failed for package ‘tidyselect’
* removing ‘/Library/Frameworks/R.framework/Versions/4.0/Resources/library/tidyselect’
Warning in install.packages :
  installation of package ‘tidyselect’ had non-zero exit status
ERROR: dependency ‘ggplot2’ is not available for package ‘broom’
* removing ‘/Library/Frameworks/R.framework/Versions/4.0/Resources/library/broom’
Warning in install.packages :
  installation of package ‘broom’ had non-zero exit status
ERROR: dependency ‘callr’ is not available for package ‘reprex’
* removing ‘/Library/Frameworks/R.framework/Versions/4.0/Resources/library/reprex’
Warning in install.packages :
  installation of package ‘reprex’ had non-zero exit status
* installing *source* package ‘rvest’ ...
** package ‘rvest’ successfully unpacked and MD5 sums checked
** using staged installation
** R
** demo
** inst
** byte-compile and prepare package for lazy loading
Error in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]) : 
  namespace ‘lifecycle’ 0.2.0 is being loaded, but >= 1.0.0 is required
Calls: <Anonymous> ... namespaceImportFrom -> asNamespace -> loadNamespace
Execution halted
ERROR: lazy loading failed for package ‘rvest’
* removing ‘/Library/Frameworks/R.framework/Versions/4.0/Resources/library/rvest’
Warning in install.packages :
  installation of package ‘rvest’ had non-zero exit status
ERROR: dependency ‘tidyselect’ is not available for package ‘dbplyr’
* removing ‘/Library/Frameworks/R.framework/Versions/4.0/Resources/library/dbplyr’
Warning in install.packages :
  installation of package ‘dbplyr’ had non-zero exit status
ERROR: dependency ‘tidyselect’ is not available for package ‘dtplyr’
* removing ‘/Library/Frameworks/R.framework/Versions/4.0/Resources/library/dtplyr’
Warning in install.packages :
  installation of package ‘dtplyr’ had non-zero exit status
ERROR: dependencies ‘broom’, ‘tidyselect’ are not available for package ‘modelr’
* removing ‘/Library/Frameworks/R.framework/Versions/4.0/Resources/library/modelr’
Warning in install.packages :
  installation of package ‘modelr’ had non-zero exit status
ERROR: dependencies ‘broom’, ‘dbplyr’, ‘dtplyr’, ‘ggplot2’, ‘googlesheets4’, ‘modelr’, ‘reprex’, ‘rvest’ are not available for package ‘tidyverse’
* removing ‘/Library/Frameworks/R.framework/Versions/4.0/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/j9/wzf8x3m95zq_cjbpvk8qf6s40000gn/T/Rtmp8Sb1bj/downloaded_packages’

**Description of issue** -  I have the latest version of R  (2022.07.2) and my MacOS is on the latest IOS (13.0) but for some reason, the tidyverse package (along with a couple of other ones) will not install.

**Steps taken so far** - 
I am new to R so I am not sure what to do but I have set my .libPaths() to 
[1] "/Library/Frameworks/R.framework/Versions/4.0/Resources/library"

You are choosing not to install from source but since you are using a fearly old R version, the precompiled binaries available for it are too old. You have to either install the recommended development tools for macOS systems and compile from source.
https://mac.r-project.org/tools/

Or, update your R version so you can get access to precompiled binaries for the latest package versions.

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

If you have a query related to it or one of the replies, start a new topic and refer back with a link.