help with installing tidyverse package (recent R update)

I had tidyverse originally installed, but then I updated my R version because I started having problems with dplyer, and now dplyer is working fine but I can't get tidyverse to reinstall. This seems to be where the error messages start (note: I have tried updating all of my other packages that it mentions, like tibble, but they won't update either):

** preparing package for lazy loading
Error in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]) :
namespace 'rlang' 0.3.4 is being loaded, but >= 0.4.0 is required
ERROR: lazy loading failed for package 'lifecycle'

  • removing 'C:/Users/Melody/Documents/R/win-library/3.4/lifecycle'
    In R CMD INSTALL
    Warning in install.packages :
    running command '"C:/Apps/R-34~1.3/bin/x64/R" CMD INSTALL -l "C:\Users\Melody\Documents\R\win-library\3.4" C:\Users\Melody\AppData\Local\Temp\RtmpINxqby/downloaded_packages/lifecycle_0.2.0.tar.gz' had status 1
    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
    ** R
    ** inst
    ** preparing package for lazy loading
    Error in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]) :
    namespace 'processx' 3.3.0 is being loaded, but >= 3.4.0 is required
    ERROR: lazy loading failed for package 'callr'
  • removing 'C:/Users/Melody/Documents/R/win-library/3.4/callr'
    In R CMD INSTALL
    Warning in install.packages :
    running command '"C:/Apps/R-34~1.3/bin/x64/R" CMD INSTALL -l "C:\Users\Melody\Documents\R\win-library\3.4" C:\Users\Melody\AppData\Local\Temp\RtmpINxqby/downloaded_packages/callr_3.4.3.tar.gz' had status 1
    Warning in install.packages :
    installation of package ‘callr’ 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]]) :
    namespace 'tibble' 2.1.1 is already loaded, but >= 3.0.0 is required
    ERROR: lazy loading failed for package 'broom'
  • removing 'C:/Users/Melody/Documents/R/win-library/3.4/broom'
  • restoring previous 'C:/Users/Melody/Documents/R/win-library/3.4/broom'
    In R CMD INSTALL
    Warning in install.packages :
    running command '"C:/Apps/R-34~1.3/bin/x64/R" CMD INSTALL -l "C:\Users\Melody\Documents\R\win-library\3.4" C:\Users\Melody\AppData\Local\Temp\RtmpINxqby/downloaded_packages/broom_0.5.6.tar.gz' had status 1
    Warning in install.packages :
    installation of package ‘broom’ had non-zero exit status
  • installing source package 'hms' ...
    ** package 'hms' successfully unpacked and MD5 sums checked
    ** R
    ** preparing package for lazy loading
    Error in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]) :
    namespace 'vctrs' 0.1.0 is being loaded, but >= 0.2.1 is required
    ERROR: lazy loading failed for package 'hms'
  • removing 'C:/Users/Melody/Documents/R/win-library/3.4/hms'
  • restoring previous 'C:/Users/Melody/Documents/R/win-library/3.4/hms'
    In R CMD INSTALL
    Warning in install.packages :
    running command '"C:/Apps/R-34~1.3/bin/x64/R" CMD INSTALL -l "C:\Users\Melody\Documents\R\win-library\3.4" C:\Users\Melody\AppData\Local\Temp\RtmpINxqby/downloaded_packages/hms_0.5.3.tar.gz' had status 1
    Warning in install.packages :
    installation of package ‘hms’ had non-zero exit status
    ERROR: dependency 'lifecycle' is not available for package 'dbplyr'
  • removing 'C:/Users/Melody/Documents/R/win-library/3.4/dbplyr'
    In R CMD INSTALL
    Warning in install.packages :
    running command '"C:/Apps/R-34~1.3/bin/x64/R" CMD INSTALL -l "C:\Users\Melody\Documents\R\win-library\3.4" C:\Users\Melody\AppData\Local\Temp\RtmpINxqby/downloaded_packages/dbplyr_1.4.3.tar.gz' had status 1
    Warning in install.packages :
    installation of package ‘dbplyr’ had non-zero exit status
  • installing source package 'modelr' ...
    ** package 'modelr' successfully unpacked and MD5 sums checked
    ** R
    ** data
    *** moving datasets to lazyload DB
    ** preparing package for lazy loading
    Error in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]) :
    there is no package called 'mnormt'
    ERROR: lazy loading failed for package 'modelr'
  • removing 'C:/Users/Melody/Documents/R/win-library/3.4/modelr'
    In R CMD INSTALL
    Warning in install.packages :
    running command '"C:/Apps/R-34~1.3/bin/x64/R" CMD INSTALL -l "C:\Users\Melody\Documents\R\win-library\3.4" C:\Users\Melody\AppData\Local\Temp\RtmpINxqby/downloaded_packages/modelr_0.1.6.tar.gz' had status 1
    Warning in install.packages :
    installation of package ‘modelr’ had non-zero exit status
    ERROR: dependency 'callr' is not available for package 'reprex'
  • removing 'C:/Users/Melody/Documents/R/win-library/3.4/reprex'
    In R CMD INSTALL
    Warning in install.packages :
    running command '"C:/Apps/R-34~1.3/bin/x64/R" CMD INSTALL -l "C:\Users\Melody\Documents\R\win-library\3.4" C:\Users\Melody\AppData\Local\Temp\RtmpINxqby/downloaded_packages/reprex_0.3.0.tar.gz' had status 1
    Warning in install.packages :
    installation of package ‘reprex’ had non-zero exit status
    ERROR: dependencies 'dbplyr', 'modelr', 'reprex' are not available for package 'tidyverse'
  • removing 'C:/Users/Melody/Documents/R/win-library/3.4/tidyverse'
    In R CMD INSTALL
    Warning in install.packages :
    running command '"C:/Apps/R-34~1.3/bin/x64/R" CMD INSTALL -l "C:\Users\Melody\Documents\R\win-library\3.4" C:\Users\Melody\AppData\Local\Temp\RtmpINxqby/downloaded_packages/tidyverse_1.3.0.tar.gz' had status 1
    Warning in install.packages :
    installation of package ‘tidyverse’ had non-zero exit status

Any help would be appreciated!!!!

You are being asked to update rlang

install.packages("rlang")

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

I have tried that, but unfortunately it hasn't worked. I tried manually updating every package that it said I needed to update with the same results. I recently tried downloading the RTools as well, get it installed, but that's not working either. I'm kind of at a loss. Here's more error text if it helps anyone:

  • 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.3.4 is being loaded, but >= 0.4.0 is required
    ERROR: lazy loading failed for package 'lifecycle'
  • removing 'C:/Users/Melody/Documents/R/win-library/3.4/lifecycle'
    In R CMD INSTALL
    Warning in install.packages :
    running command '"C:/Apps/R-34~1.3/bin/x64/R" CMD INSTALL -l "C:\Users\Melody\Documents\R\win-library\3.4" C:\Users\Melody\AppData\Local\Temp\RtmpQbauMj/downloaded_packages/lifecycle_0.2.0.tar.gz' had status 1
    Warning in install.packages :
    installation of package ‘lifecycle’ had non-zero exit status

When I try to use the RTools to install "rlang" package and do the compliation since a binary file isn't available, here are the errors:

There is a binary version available but the source version is
later:
binary source needs_compilation
rlang 0.3.4 0.4.5 TRUE

Do you want to install from sources the package which needs compilation?
y/n: y
installing the source package ‘rlang’

trying URL 'https://cran.rstudio.com/src/contrib/rlang_0.4.5.tar.gz'
Content type 'application/x-gzip' length 816813 bytes (797 KB)
downloaded 797 KB

  • installing source package 'rlang' ...
    ** package 'rlang' successfully unpacked and MD5 sums checked
    ** libs

*** arch - i386
c:/Rtools/mingw_32/bin/gcc -I"C:/Apps/R-34~1.3/include" -DNDEBUG -I./lib/ -O3 -Wall -std=gnu99 -mtune=generic -c capture.c -o capture.o
sh: c:/Rtools/mingw_32/bin/gcc: No such file or directory
make: *** [C:/Apps/R-34~1.3/etc/i386/Makeconf:208: capture.o] Error 127
Warning: running command 'make -f "Makevars" -f "C:/Apps/R-34~1.3/etc/i386/Makeconf" -f "C:/Apps/R-34~1.3/share/make/winshlib.mk" SHLIB="rlang.dll" OBJECTS="capture.o export.o internal.o lib.o version.o"' had status 2
ERROR: compilation failed for package 'rlang'

  • removing 'C:/Users/Melody/Documents/R/win-library/3.4/rlang'
  • restoring previous 'C:/Users/Melody/Documents/R/win-library/3.4/rlang'
    In R CMD INSTALL
    Warning in install.packages :
    running command '"C:/Apps/R-34~1.3/bin/x64/R" CMD INSTALL -l "C:\Users\Melody\Documents\R\win-library\3.4" C:\Users\Melody\AppData\Local\Temp\RtmpQbauMj/downloaded_packages/rlang_0.4.5.tar.gz' had status 1
    Warning in install.packages :
    installation of package ‘rlang’ had non-zero exit status

Ok, I thought I had updated my R version, but I think something got mixed up. So I uninstalled and reinstalled the newest version. It's working now! I'll get rid of the 32 bit version too to avoid any future issues, great idea. Thank you!!!!

Try updating your R version so you have access to precompiled binaries (they are only available for the latest R versions).
Also, it seemes like you don't have the 32 bit version of Rtools installed but you are also using the 32 bit R version, I personally avoid having both versions installed to avoid this kind of issues and I keep the 64 bit version only.