Unable to install tidyverse in R studio

Hello, I have tried to install tidyverse and failed.
I have searched some solution in previous posts but they cannot solve my problem.
Please provide me help. Thanks a lot.
Below is my whole error message.

> install.packages("tidyverse", dependencies = TRUE)
Installing package into :/Users/1088562/Documents/R/win-library/3.3?(as ib?is unspecified)
also installing the dependencies s? rocessx? allr? esc? kgbuild? projroot? lue? cpp? idyselect? llipsis? ctrs? rogress? ansi? ifecycle? ex? kgload? raise? room? bplyr? plyr? orcats? gplot2? aven? ms? sonlite? odelr? illar? urrr? eadr? eadxl? lang? ibble? idyr? ml2? ovr? eather? estthat?

  There are binary versions available but the source
  versions are later:
            binary source needs_compilation
processx   2.0.0.1  3.4.1              TRUE
callr        2.0.3  3.4.0              TRUE
desc         1.1.1  1.2.0             FALSE
glue         1.2.0  1.3.1              TRUE
Rcpp       0.12.16  1.0.3              TRUE
tidyselect   0.2.4  0.2.5              TRUE
progress     1.1.2  1.2.2             FALSE
fansi        0.2.2  0.4.0              TRUE
broom        0.4.4  0.5.3             FALSE
dbplyr       1.2.1  1.4.2             FALSE
dplyr        0.7.4  0.8.3              TRUE
forcats      0.3.0  0.4.0             FALSE
ggplot2      2.2.1  3.2.1             FALSE
haven        1.1.1  2.2.0              TRUE
hms          0.4.2  0.5.2             FALSE
jsonlite       1.5    1.6              TRUE
modelr       0.1.1  0.1.5             FALSE
pillar       1.2.1  1.4.2             FALSE
purrr        0.2.4  0.3.3              TRUE
readr        1.1.1  1.3.1              TRUE
readxl       1.1.0  1.3.1              TRUE
rlang        0.2.0  0.4.2              TRUE
tibble       1.4.2  2.1.3              TRUE
tidyr        0.8.0  1.0.0              TRUE
xml2         1.2.0  1.2.2              TRUE
covr         3.0.1  3.4.0              TRUE
feather      0.3.1  0.3.5              TRUE
testthat     2.0.0  2.3.1              TRUE
tidyverse    1.2.1  1.3.0             FALSE

  Binaries will be installed
Packages which are only available in source form, and
  may need compilation of C/C++/Fortran: s?  llipsis?ctrs?kgload?  These will not be installed
trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.3/processx_2.0.0.1.zip'
Content type 'application/zip' length 91282 bytes (89 KB)
downloaded 89 KB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.3/callr_2.0.3.zip'
Content type 'application/zip' length 1028797 bytes (1004 KB)
downloaded 1004 KB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.3/rprojroot_1.3-2.zip'
Content type 'application/zip' length 68557 bytes (66 KB)
downloaded 66 KB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.3/glue_1.2.0.zip'
Content type 'application/zip' length 72364 bytes (70 KB)
downloaded 70 KB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.3/Rcpp_0.12.16.zip'
Content type 'application/zip' length 4358189 bytes (4.2 MB)
downloaded 4.2 MB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.3/tidyselect_0.2.4.zip'
Content type 'application/zip' length 612053 bytes (597 KB)
downloaded 597 KB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.3/fansi_0.2.2.zip'
Content type 'application/zip' length 141745 bytes (138 KB)
downloaded 138 KB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.3/rex_1.1.2.zip'
Content type 'application/zip' length 102208 bytes (99 KB)
downloaded 99 KB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.3/praise_1.0.0.zip'
Content type 'application/zip' length 17686 bytes (17 KB)
downloaded 17 KB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.3/dplyr_0.7.4.zip'
Content type 'application/zip' length 2897358 bytes (2.8 MB)
downloaded 2.8 MB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.3/haven_1.1.1.zip'
Content type 'application/zip' length 881609 bytes (860 KB)
downloaded 860 KB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.3/jsonlite_1.5.zip'
Content type 'application/zip' length 1159497 bytes (1.1 MB)
downloaded 1.1 MB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.3/purrr_0.2.4.zip'
Content type 'application/zip' length 244026 bytes (238 KB)
downloaded 238 KB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.3/readr_1.1.1.zip'
Content type 'application/zip' length 1253114 bytes (1.2 MB)
downloaded 1.2 MB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.3/readxl_1.1.0.zip'
Content type 'application/zip' length 1487668 bytes (1.4 MB)
downloaded 1.4 MB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.3/rlang_0.2.0.zip'
Content type 'application/zip' length 754726 bytes (737 KB)
downloaded 737 KB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.3/tibble_1.4.2.zip'
Content type 'application/zip' length 172305 bytes (168 KB)
downloaded 168 KB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.3/tidyr_0.8.0.zip'
Content type 'application/zip' length 899429 bytes (878 KB)
downloaded 878 KB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.3/xml2_1.2.0.zip'
Content type 'application/zip' length 3532783 bytes (3.4 MB)
downloaded 3.4 MB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.3/covr_3.0.1.zip'
Content type 'application/zip' length 121024 bytes (118 KB)
downloaded 118 KB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.3/feather_0.3.1.zip'
Content type 'application/zip' length 672400 bytes (656 KB)
downloaded 656 KB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.3/testthat_2.0.0.zip'
Content type 'application/zip' length 1197604 bytes (1.1 MB)
downloaded 1.1 MB

package rocessx?successfully unpacked and MD5 sums checked
package allr?successfully unpacked and MD5 sums checked
package projroot?successfully unpacked and MD5 sums checked
package lue?successfully unpacked and MD5 sums checked
package cpp?successfully unpacked and MD5 sums checked
package idyselect?successfully unpacked and MD5 sums checked
package ansi?successfully unpacked and MD5 sums checked
package ex?successfully unpacked and MD5 sums checked
package raise?successfully unpacked and MD5 sums checked
package plyr?successfully unpacked and MD5 sums checked
package aven?successfully unpacked and MD5 sums checked
package sonlite?successfully unpacked and MD5 sums checked
package urrr?successfully unpacked and MD5 sums checked
package eadr?successfully unpacked and MD5 sums checked
package eadxl?successfully unpacked and MD5 sums checked
package lang?successfully unpacked and MD5 sums checked
package ibble?successfully unpacked and MD5 sums checked
package idyr?successfully unpacked and MD5 sums checked
package ml2?successfully unpacked and MD5 sums checked
package ovr?successfully unpacked and MD5 sums checked
package eather?successfully unpacked and MD5 sums checked
package estthat?successfully unpacked and MD5 sums checked

The downloaded binary packages are in
	C:\Users\1088562\AppData\Local\Temp\4\RtmpAhZzYf\downloaded_packages
installing the source packages esc? kgbuild? rogress? ifecycle? room? bplyr? orcats? gplot2? ms? odelr? illar? idyverse?
trying URL 'https://cran.rstudio.com/src/contrib/desc_1.2.0.tar.gz'
Content type 'application/x-gzip' length 65612 bytes (64 KB)
downloaded 64 KB

trying URL 'https://cran.rstudio.com/src/contrib/pkgbuild_1.0.6.tar.gz'
Content type 'application/x-gzip' length 29322 bytes (28 KB)
downloaded 28 KB

trying URL 'https://cran.rstudio.com/src/contrib/progress_1.2.2.tar.gz'
Content type 'application/x-gzip' length 29506 bytes (28 KB)
downloaded 28 KB

trying URL 'https://cran.rstudio.com/src/contrib/lifecycle_0.1.0.tar.gz'
Content type 'application/x-gzip' length 150752 bytes (147 KB)
downloaded 147 KB

trying URL 'https://cran.rstudio.com/src/contrib/broom_0.5.3.tar.gz'
Content type 'application/x-gzip' length 1230709 bytes (1.2 MB)
downloaded 1.2 MB

trying URL 'https://cran.rstudio.com/src/contrib/dbplyr_1.4.2.tar.gz'
Content type 'application/x-gzip' length 303397 bytes (296 KB)
downloaded 296 KB

trying URL 'https://cran.rstudio.com/src/contrib/forcats_0.4.0.tar.gz'
Content type 'application/x-gzip' length 255097 bytes (249 KB)
downloaded 249 KB

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

trying URL 'https://cran.rstudio.com/src/contrib/hms_0.5.2.tar.gz'
Content type 'application/x-gzip' length 136186 bytes (132 KB)
downloaded 132 KB

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

trying URL 'https://cran.rstudio.com/src/contrib/pillar_1.4.2.tar.gz'
Content type 'application/x-gzip' length 228815 bytes (223 KB)
downloaded 223 KB

trying URL 'https://cran.rstudio.com/src/contrib/tidyverse_1.3.0.tar.gz'
Content type 'application/x-gzip' length 712837 bytes (696 KB)
downloaded 696 KB

* installing *source* package 'desc' ...
** package 'desc' successfully unpacked and MD5 sums checked
** R
** inst
** preparing package for lazy loading
** help
*** installing help indices
** building package indices
** testing if installed package can be loaded
*** arch - i386
*** arch - x64
* DONE (desc)
* installing *source* package 'lifecycle' ...
** package 'lifecycle' successfully unpacked and MD5 sums checked
** R
** inst
** preparing package for lazy loading
Error in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]) : 
  namespace 'rlang' 0.2.0 is being loaded, but >= 0.4.0 is required
ERROR: lazy loading failed for package 'lifecycle'
* removing 'C:/Users/1088562/Documents/R/win-library/3.3/lifecycle'
Warning in install.packages :
  running command '"C:/PROGRA~1/R/R-33~1.2/bin/x64/R" CMD INSTALL -l "C:\Users\1088562\Documents\R\win-library\3.3" C:\Users\1088562\AppData\Local\Temp\4\RtmpAhZzYf/downloaded_packages/lifecycle_0.1.0.tar.gz' had status 1
Warning in install.packages :
  installation of package ifecycle?had non-zero exit status
* installing *source* package 'broom' ...
** package 'broom' successfully unpacked and MD5 sums checked
** R
** data
*** moving datasets to lazyload DB
** inst
** preparing package for lazy loading
Error in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]) : 
  there is no package called 'bindrcpp'
ERROR: lazy loading failed for package 'broom'
* removing 'C:/Users/1088562/Documents/R/win-library/3.3/broom'
Warning in install.packages :
  running command '"C:/PROGRA~1/R/R-33~1.2/bin/x64/R" CMD INSTALL -l "C:\Users\1088562\Documents\R\win-library\3.3" C:\Users\1088562\AppData\Local\Temp\4\RtmpAhZzYf/downloaded_packages/broom_0.5.3.tar.gz' had status 1
Warning in install.packages :
  installation of package room?had non-zero exit status
* installing *source* package 'dbplyr' ...
** package 'dbplyr' successfully unpacked and MD5 sums checked
** R
** inst
** preparing package for lazy loading
Error in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]) : 
  namespace 'dplyr' 0.7.4 is being loaded, but >= 0.8.0 is required
ERROR: lazy loading failed for package 'dbplyr'
* removing 'C:/Users/1088562/Documents/R/win-library/3.3/dbplyr'
Warning in install.packages :
  running command '"C:/PROGRA~1/R/R-33~1.2/bin/x64/R" CMD INSTALL -l "C:\Users\1088562\Documents\R\win-library\3.3" C:\Users\1088562\AppData\Local\Temp\4\RtmpAhZzYf/downloaded_packages/dbplyr_1.4.2.tar.gz' had status 1
Warning in install.packages :
  installation of package bplyr?had non-zero exit status
ERROR: dependency 'ellipsis' is not available for package 'forcats'
* removing 'C:/Users/1088562/Documents/R/win-library/3.3/forcats'
Warning in install.packages :
  running command '"C:/PROGRA~1/R/R-33~1.2/bin/x64/R" CMD INSTALL -l "C:\Users\1088562\Documents\R\win-library\3.3" C:\Users\1088562\AppData\Local\Temp\4\RtmpAhZzYf/downloaded_packages/forcats_0.4.0.tar.gz' had status 1
Warning in install.packages :
  installation of package orcats?had non-zero exit status
* 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 'rlang' 0.2.0 is being loaded, but >= 0.3.0 is required
ERROR: lazy loading failed for package 'ggplot2'
* removing 'C:/Users/1088562/Documents/R/win-library/3.3/ggplot2'
Warning in install.packages :
  running command '"C:/PROGRA~1/R/R-33~1.2/bin/x64/R" CMD INSTALL -l "C:\Users\1088562\Documents\R\win-library\3.3" C:\Users\1088562\AppData\Local\Temp\4\RtmpAhZzYf/downloaded_packages/ggplot2_3.2.1.tar.gz' had status 1
Warning in install.packages :
  installation of package gplot2?had non-zero exit status
ERROR: dependency 'vctrs' is not available for package 'hms'
* removing 'C:/Users/1088562/Documents/R/win-library/3.3/hms'
Warning in install.packages :
  running command '"C:/PROGRA~1/R/R-33~1.2/bin/x64/R" CMD INSTALL -l "C:\Users\1088562\Documents\R\win-library\3.3" C:\Users\1088562\AppData\Local\Temp\4\RtmpAhZzYf/downloaded_packages/hms_0.5.2.tar.gz' had status 1
Warning in install.packages :
  installation of package ms?had non-zero exit status
ERROR: dependency 'vctrs' is not available for package 'pillar'
* removing 'C:/Users/1088562/Documents/R/win-library/3.3/pillar'
Warning in install.packages :
  running command '"C:/PROGRA~1/R/R-33~1.2/bin/x64/R" CMD INSTALL -l "C:\Users\1088562\Documents\R\win-library\3.3" C:\Users\1088562\AppData\Local\Temp\4\RtmpAhZzYf/downloaded_packages/pillar_1.4.2.tar.gz' had status 1
Warning in install.packages :
  installation of package illar?had non-zero exit status
* installing *source* package 'pkgbuild' ...
** package 'pkgbuild' successfully unpacked and MD5 sums checked
** R
** preparing package for lazy loading
Error in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]) : 
  namespace 'callr' 2.0.3 is being loaded, but >= 3.2.0 is required
ERROR: lazy loading failed for package 'pkgbuild'
* removing 'C:/Users/1088562/Documents/R/win-library/3.3/pkgbuild'
Warning in install.packages :
  running command '"C:/PROGRA~1/R/R-33~1.2/bin/x64/R" CMD INSTALL -l "C:\Users\1088562\Documents\R\win-library\3.3" C:\Users\1088562\AppData\Local\Temp\4\RtmpAhZzYf/downloaded_packages/pkgbuild_1.0.6.tar.gz' had status 1
Warning in install.packages :
  installation of package kgbuild?had non-zero exit status
ERROR: dependency 'hms' is not available for package 'progress'
* removing 'C:/Users/1088562/Documents/R/win-library/3.3/progress'
Warning in install.packages :
  running command '"C:/PROGRA~1/R/R-33~1.2/bin/x64/R" CMD INSTALL -l "C:\Users\1088562\Documents\R\win-library\3.3" C:\Users\1088562\AppData\Local\Temp\4\RtmpAhZzYf/downloaded_packages/progress_1.2.2.tar.gz' had status 1
Warning in install.packages :
  installation of package rogress?had non-zero exit status
ERROR: dependency 'broom' is not available for package 'modelr'
* removing 'C:/Users/1088562/Documents/R/win-library/3.3/modelr'
Warning in install.packages :
  running command '"C:/PROGRA~1/R/R-33~1.2/bin/x64/R" CMD INSTALL -l "C:\Users\1088562\Documents\R\win-library\3.3" C:\Users\1088562\AppData\Local\Temp\4\RtmpAhZzYf/downloaded_packages/modelr_0.1.5.tar.gz' had status 1
Warning in install.packages :
  installation of package odelr?had non-zero exit status
ERROR: dependencies 'broom', 'dbplyr', 'forcats', 'ggplot2', 'hms', 'modelr', 'pillar' are not available for package 'tidyverse'
* removing 'C:/Users/1088562/Documents/R/win-library/3.3/tidyverse'
Warning in install.packages :
  running command '"C:/PROGRA~1/R/R-33~1.2/bin/x64/R" CMD INSTALL -l "C:\Users\1088562\Documents\R\win-library\3.3" C:\Users\1088562\AppData\Local\Temp\4\RtmpAhZzYf/downloaded_packages/tidyverse_1.3.0.tar.gz' had status 1
Warning in install.packages :
  installation of package idyverse?had non-zero exit status

hi @tsb88562

Can you try to update manualy the package rlang (install.package(rlang))? All yr trouble can be related to that.

After update try to reinstall tidyverse.

1 Like

hi,

are you using the most recent r version?
I encountered similar problems like yours when using an older version of R.

Sometimes some dependencies have troubles installing, because they are not available for older r versions in their current version. I solved Problems like this through identifying the problematic dependency packages and installing prior versions of them:

in this case it was the hms package for me:

link <- "https://cran.r-project.org/src/contrib/Archive/hms/hms_0.4.1.tar.gz"
install.packages(link, repos=NULL, type='source')

hope this helps and kind regards,

chris

1 Like

Thank you.
The problem is solved after I upgraded the version of R.

1 Like

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