unable to do library (tidyverse) after installing tidyverse package

I have installed tidyverse package multiple times but still unable to do library tidyverse...below is the issue now, please help-

> install.packages("tidyverse")
Installing package into ‘C:/Users/Dell/Documents/R/win-library/3.4’
(as ‘lib’ is unspecified)
also installing the dependencies ‘ellipsis’, ‘processx’, ‘vctrs’, ‘callr’, ‘lifecycle’, ‘broom’, ‘dbplyr’, ‘dplyr’, ‘ggplot2’, ‘haven’, ‘hms’, ‘modelr’, ‘purrr’, ‘reprex’, ‘rlang’, ‘tibble’, ‘tidyr’, ‘xml2’


  There are binary versions available but the source versions are later:
           binary source needs_compilation
ellipsis    0.1.0  0.3.0              TRUE
processx    3.3.0  3.4.2              TRUE
vctrs       0.1.0  0.2.4              TRUE
callr       3.2.0  3.4.2             FALSE
broom       0.5.2  0.5.5             FALSE
dbplyr      1.4.0  1.4.2             FALSE
dplyr     0.8.0.1  0.8.5              TRUE
ggplot2     3.1.1  3.3.0             FALSE
haven       2.1.0  2.2.0              TRUE
hms         0.4.2  0.5.3             FALSE
modelr      0.1.4  0.1.6             FALSE
purrr       0.3.2  0.3.3              TRUE
reprex      0.2.1  0.3.0             FALSE
rlang       0.3.4  0.4.5              TRUE
tibble      2.1.1  2.1.3              TRUE
tidyr       0.8.3  1.0.2              TRUE
xml2        1.2.0  1.2.5              TRUE
tidyverse   1.2.1  1.3.0             FALSE

  Binaries will be installed
trying URL 'https://cran.ma.imperial.ac.uk/bin/windows/contrib/3.4/ellipsis_0.1.0.zip'
Content type 'application/zip' length 30847 bytes (30 KB)
downloaded 30 KB

trying URL 'https://cran.ma.imperial.ac.uk/bin/windows/contrib/3.4/processx_3.3.0.zip'
Content type 'application/zip' length 246452 bytes (240 KB)
downloaded 240 KB

trying URL 'https://cran.ma.imperial.ac.uk/bin/windows/contrib/3.4/vctrs_0.1.0.zip'
Content type 'application/zip' length 499748 bytes (488 KB)
downloaded 488 KB

trying URL 'https://cran.ma.imperial.ac.uk/bin/windows/contrib/3.4/dplyr_0.8.0.1.zip'
Content type 'application/zip' length 3029353 bytes (2.9 MB)
downloaded 2.9 MB

trying URL 'https://cran.ma.imperial.ac.uk/bin/windows/contrib/3.4/haven_2.1.0.zip'
Content type 'application/zip' length 988500 bytes (965 KB)
downloaded 965 KB

trying URL 'https://cran.ma.imperial.ac.uk/bin/windows/contrib/3.4/purrr_0.3.2.zip'
Content type 'application/zip' length 327437 bytes (319 KB)
downloaded 319 KB

trying URL 'https://cran.ma.imperial.ac.uk/bin/windows/contrib/3.4/rlang_0.3.4.zip'
Content type 'application/zip' length 1080437 bytes (1.0 MB)
downloaded 1.0 MB

trying URL 'https://cran.ma.imperial.ac.uk/bin/windows/contrib/3.4/tibble_2.1.1.zip'
Content type 'application/zip' length 238931 bytes (233 KB)
downloaded 233 KB

trying URL 'https://cran.ma.imperial.ac.uk/bin/windows/contrib/3.4/tidyr_0.8.3.zip'
Content type 'application/zip' length 907112 bytes (885 KB)
downloaded 885 KB

trying URL 'https://cran.ma.imperial.ac.uk/bin/windows/contrib/3.4/xml2_1.2.0.zip'
Content type 'application/zip' length 3543977 bytes (3.4 MB)
downloaded 3.4 MB

package ‘ellipsis’ successfully unpacked and MD5 sums checked
package ‘processx’ successfully unpacked and MD5 sums checked
package ‘vctrs’ successfully unpacked and MD5 sums checked
package ‘dplyr’ successfully unpacked and MD5 sums checked
package ‘haven’ successfully unpacked and MD5 sums checked
package ‘purrr’ successfully unpacked and MD5 sums checked
package ‘rlang’ successfully unpacked and MD5 sums checked
package ‘tibble’ successfully unpacked and MD5 sums checked
package ‘tidyr’ successfully unpacked and MD5 sums checked
package ‘xml2’ successfully unpacked and MD5 sums checked

The downloaded binary packages are in
	C:\Users\Dell\AppData\Local\Temp\RtmpmsBI4h\downloaded_packages
installing the source packages ‘callr’, ‘lifecycle’, ‘broom’, ‘dbplyr’, ‘ggplot2’, ‘hms’, ‘modelr’, ‘reprex’, ‘tidyverse’

trying URL 'https://cran.ma.imperial.ac.uk/src/contrib/callr_3.4.2.tar.gz'
Content type 'application/x-gzip' length 85454 bytes (83 KB)
downloaded 83 KB

trying URL 'https://cran.ma.imperial.ac.uk/src/contrib/lifecycle_0.2.0.tar.gz'
Content type 'application/x-gzip' length 164455 bytes (160 KB)
downloaded 160 KB

trying URL 'https://cran.ma.imperial.ac.uk/src/contrib/broom_0.5.5.tar.gz'
Content type 'application/x-gzip' length 1223871 bytes (1.2 MB)
downloaded 1.2 MB

trying URL 'https://cran.ma.imperial.ac.uk/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.ma.imperial.ac.uk/src/contrib/ggplot2_3.3.0.tar.gz'
Content type 'application/x-gzip' length 3031461 bytes (2.9 MB)
downloaded 2.9 MB

trying URL 'https://cran.ma.imperial.ac.uk/src/contrib/hms_0.5.3.tar.gz'
Content type 'application/x-gzip' length 134669 bytes (131 KB)
downloaded 131 KB

trying URL 'https://cran.ma.imperial.ac.uk/src/contrib/modelr_0.1.6.tar.gz'
Content type 'application/x-gzip' length 121295 bytes (118 KB)
downloaded 118 KB

trying URL 'https://cran.ma.imperial.ac.uk/src/contrib/reprex_0.3.0.tar.gz'
Content type 'application/x-gzip' length 1052597 bytes (1.0 MB)
downloaded 1.0 MB

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

* 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/Dell/Documents/R/win-library/3.4/callr'
Warning in install.packages :
  running command '"C:\Program Files\RStudio\R-3.4.2/bin/x64/R" CMD INSTALL -l "C:\Users\Dell\Documents\R\win-library\3.4" C:\Users\Dell\AppData\Local\Temp\RtmpmsBI4h/downloaded_packages/callr_3.4.2.tar.gz' had status 1
Warning in install.packages :
  installation of package ‘callr’ had non-zero exit status
* 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/Dell/Documents/R/win-library/3.4/lifecycle'
Warning in install.packages :
  running command '"C:\Program Files\RStudio\R-3.4.2/bin/x64/R" CMD INSTALL -l "C:\Users\Dell\Documents\R\win-library\3.4" C:\Users\Dell\AppData\Local\Temp\RtmpmsBI4h/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 '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 'pkgconfig' 2.0.1 is already loaded, but >= 2.0.2 is required
ERROR: lazy loading failed for package 'broom'
* removing 'C:/Users/Dell/Documents/R/win-library/3.4/broom'
Warning in install.packages :
  running command '"C:\Program Files\RStudio\R-3.4.2/bin/x64/R" CMD INSTALL -l "C:\Users\Dell\Documents\R\win-library\3.4" C:\Users\Dell\AppData\Local\Temp\RtmpmsBI4h/downloaded_packages/broom_0.5.5.tar.gz' had status 1
Warning in install.packages :
  installation of package ‘broom’ 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(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]) : 
  namespace 'pkgconfig' 2.0.1 is already loaded, but >= 2.0.2 is required
ERROR: lazy loading failed for package 'dbplyr'
* removing 'C:/Users/Dell/Documents/R/win-library/3.4/dbplyr'
Warning in install.packages :
  running command '"C:\Program Files\RStudio\R-3.4.2/bin/x64/R" CMD INSTALL -l "C:\Users\Dell\Documents\R\win-library\3.4" C:\Users\Dell\AppData\Local\Temp\RtmpmsBI4h/downloaded_packages/dbplyr_1.4.2.tar.gz' had status 1
Warning in install.packages :
  installation of package ‘dbplyr’ 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(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]) : 
  namespace 'pkgconfig' 2.0.1 is being loaded, but >= 2.0.2 is required
ERROR: lazy loading failed for package 'ggplot2'
* removing 'C:/Users/Dell/Documents/R/win-library/3.4/ggplot2'
Warning in install.packages :
  running command '"C:\Program Files\RStudio\R-3.4.2/bin/x64/R" CMD INSTALL -l "C:\Users\Dell\Documents\R\win-library\3.4" C:\Users\Dell\AppData\Local\Temp\RtmpmsBI4h/downloaded_packages/ggplot2_3.3.0.tar.gz' had status 1
Warning in install.packages :
  installation of package ‘ggplot2’ 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/Dell/Documents/R/win-library/3.4/hms'
Warning in install.packages :
  running command '"C:\Program Files\RStudio\R-3.4.2/bin/x64/R" CMD INSTALL -l "C:\Users\Dell\Documents\R\win-library\3.4" C:\Users\Dell\AppData\Local\Temp\RtmpmsBI4h/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 'broom' is not available for package 'modelr'
* removing 'C:/Users/Dell/Documents/R/win-library/3.4/modelr'
Warning in install.packages :
  running command '"C:\Program Files\RStudio\R-3.4.2/bin/x64/R" CMD INSTALL -l "C:\Users\Dell\Documents\R\win-library\3.4" C:\Users\Dell\AppData\Local\Temp\RtmpmsBI4h/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/Dell/Documents/R/win-library/3.4/reprex'
Warning in install.packages :
  running command '"C:\Program Files\RStudio\R-3.4.2/bin/x64/R" CMD INSTALL -l "C:\Users\Dell\Documents\R\win-library\3.4" C:\Users\Dell\AppData\Local\Temp\RtmpmsBI4h/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 'broom', 'dbplyr', 'modelr', 'reprex' are not available for package 'tidyverse'
* removing 'C:/Users/Dell/Documents/R/win-library/3.4/tidyverse'
Warning in install.packages :
  running command '"C:\Program Files\RStudio\R-3.4.2/bin/x64/R" CMD INSTALL -l "C:\Users\Dell\Documents\R\win-library\3.4" C:\Users\Dell\AppData\Local\Temp\RtmpmsBI4h/downloaded_packages/tidyverse_1.3.0.tar.gz' had status 1
Warning in install.packages :
  installation of package ‘tidyverse’ had non-zero exit status

The downloaded source packages are in
	‘C:\Users\Dell\AppData\Local\Temp\RtmpmsBI4h\downloaded_packages’
Error: D:/temp/RtmpSe3pf4/R.INSTALL1825822943b4d/tibble/man/tibble-package.Rd:14: namespace ‘pkgconfig’ 2.0.1 is being loaded, but >= 2.0.2 is required
> library(tidyverse)
Error in library(tidyverse) : there is no package called ‘tidyverse’

the first mention of the word 'error' in the above related to processx, perhaps focus on trying to install an up to date version of that as a first step ?

This is happening because you haven't installed tydiverse successfully.

I recommend you to first update your R version since you are using a fairly old version, this is going to bring you many installation issues.

Then try to install tidyverse again with

install.packages("tidyverse", dependencies = TRUE)

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