Problem installing Tidyverse

Hi, I'm having trouble installing Tidyverse. Im getting the following error:

Installing package into ‘C:/Users/MEMolina/Documents/R/win-library/3.4’
(as ‘lib’ is unspecified)
also installing the dependencies ‘processx’, ‘ellipsis’, ‘BH’, ‘vctrs’, ‘openssl’, ‘callr’, ‘lifecycle’, ‘broom’, ‘dbplyr’, ‘dplyr’, ‘ggplot2’, ‘haven’, ‘hms’, ‘httr’, ‘modelr’, ‘pillar’, ‘purrr’, ‘reprex’, ‘rlang’, ‘rvest’, ‘tibble’, ‘tidyr’, ‘xml2’


  There are binary versions available but the source versions are later:
            binary   source needs_compilation
processx     3.3.0    3.4.2              TRUE
ellipsis     0.1.0    0.3.0              TRUE
BH        1.69.0-1 1.72.0-3             FALSE
vctrs        0.1.0    0.2.3              TRUE
openssl        1.3    1.4.1              TRUE
callr        3.2.0    3.4.2             FALSE
broom        0.5.2    0.5.4             FALSE
dbplyr       1.4.0    1.4.2             FALSE
dplyr      0.8.0.1    0.8.4              TRUE
ggplot2      3.1.1    3.2.1             FALSE
haven        2.1.0    2.2.0              TRUE
hms          0.4.2    0.5.3             FALSE
httr         1.4.0    1.4.1             FALSE
modelr       0.1.4    0.1.6             FALSE
pillar       1.3.1    1.4.3             FALSE
purrr        0.3.2    0.3.3              TRUE
reprex       0.2.1    0.3.0             FALSE
rlang        0.3.4    0.4.4              TRUE
rvest        0.3.3    0.3.5             FALSE
tibble       2.1.1    2.1.3              TRUE
tidyr        0.8.3    1.0.2              TRUE
xml2         1.2.0    1.2.2              TRUE
tidyverse    1.2.1    1.3.0             FALSE

  Binaries will be installed
trying URL 'https://cran.rstudio.com/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.rstudio.com/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.rstudio.com/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.rstudio.com/bin/windows/contrib/3.4/openssl_1.3.zip'
Content type 'application/zip' length 3907029 bytes (3.7 MB)
downloaded 3.7 MB

trying URL 'https://cran.rstudio.com/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.rstudio.com/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.rstudio.com/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.rstudio.com/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.rstudio.com/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.rstudio.com/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.rstudio.com/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 ‘processx’ successfully unpacked and MD5 sums checked
Warning in install.packages :
  unable to move temporary installation ‘C:\Users\MEMolina\Documents\R\win-library\3.4\file27506368d96\processx’ to ‘C:\Users\MEMolina\Documents\R\win-library\3.4\processx’
package ‘ellipsis’ successfully unpacked and MD5 sums checked
package ‘vctrs’ successfully unpacked and MD5 sums checked
Warning in install.packages :
  unable to move temporary installation ‘C:\Users\MEMolina\Documents\R\win-library\3.4\file27505d517173\vctrs’ to ‘C:\Users\MEMolina\Documents\R\win-library\3.4\vctrs’
package ‘openssl’ successfully unpacked and MD5 sums checked
Warning in install.packages :
  unable to move temporary installation ‘C:\Users\MEMolina\Documents\R\win-library\3.4\file275016b86ac4\openssl’ to ‘C:\Users\MEMolina\Documents\R\win-library\3.4\openssl’
package ‘dplyr’ successfully unpacked and MD5 sums checked
Warning in install.packages :
  unable to move temporary installation ‘C:\Users\MEMolina\Documents\R\win-library\3.4\file275018d7fa0\dplyr’ to ‘C:\Users\MEMolina\Documents\R\win-library\3.4\dplyr’
package ‘haven’ successfully unpacked and MD5 sums checked
Warning in install.packages :
  unable to move temporary installation ‘C:\Users\MEMolina\Documents\R\win-library\3.4\file275021347d0b\haven’ to ‘C:\Users\MEMolina\Documents\R\win-library\3.4\haven’
package ‘purrr’ successfully unpacked and MD5 sums checked
Warning in install.packages :
  unable to move temporary installation ‘C:\Users\MEMolina\Documents\R\win-library\3.4\file2750849617d\purrr’ to ‘C:\Users\MEMolina\Documents\R\win-library\3.4\purrr’
package ‘rlang’ successfully unpacked and MD5 sums checked
Warning in install.packages :
  unable to move temporary installation ‘C:\Users\MEMolina\Documents\R\win-library\3.4\file27501265531e\rlang’ to ‘C:\Users\MEMolina\Documents\R\win-library\3.4\rlang’
package ‘tibble’ successfully unpacked and MD5 sums checked
Warning in install.packages :
  unable to move temporary installation ‘C:\Users\MEMolina\Documents\R\win-library\3.4\file27506d2c1ced\tibble’ to ‘C:\Users\MEMolina\Documents\R\win-library\3.4\tibble’
package ‘tidyr’ successfully unpacked and MD5 sums checked
Warning in install.packages :
  unable to move temporary installation ‘C:\Users\MEMolina\Documents\R\win-library\3.4\file275072c91218\tidyr’ to ‘C:\Users\MEMolina\Documents\R\win-library\3.4\tidyr’
package ‘xml2’ successfully unpacked and MD5 sums checked
Warning in install.packages :
  unable to move temporary installation ‘C:\Users\MEMolina\Documents\R\win-library\3.4\file2750293b710a\xml2’ to ‘C:\Users\MEMolina\Documents\R\win-library\3.4\xml2’

The downloaded binary packages are in
	C:\Users\MEMolina\AppData\Local\Temp\RtmpiItALa\downloaded_packages
installing the source packages ‘BH’, ‘callr’, ‘lifecycle’, ‘broom’, ‘dbplyr’, ‘ggplot2’, ‘hms’, ‘httr’, ‘modelr’, ‘pillar’, ‘reprex’, ‘rvest’, ‘tidyverse’

trying URL 'https://cran.rstudio.com/src/contrib/BH_1.72.0-3.tar.gz'
Warning in install.packages :
  InternetOpenUrl failed: 'The operation timed out'
Error in download.file(url, destfile, method, mode = "wb", ...) : 
  cannot open URL 'https://cran.rstudio.com/src/contrib/BH_1.72.0-3.tar.gz'
Warning in install.packages :
  download of package ‘BH’ failed
trying URL 'https://cran.rstudio.com/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.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.4.tar.gz'
Content type 'application/x-gzip' length 1228129 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/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.3.tar.gz'
Content type 'application/x-gzip' length 134669 bytes (131 KB)
downloaded 131 KB

trying URL 'https://cran.rstudio.com/src/contrib/httr_1.4.1.tar.gz'
Content type 'application/x-gzip' length 158465 bytes (154 KB)
downloaded 154 KB

trying URL 'https://cran.rstudio.com/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.rstudio.com/src/contrib/pillar_1.4.3.tar.gz'
Content type 'application/x-gzip' length 230874 bytes (225 KB)
downloaded 225 KB

trying URL 'https://cran.rstudio.com/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.rstudio.com/src/contrib/rvest_0.3.5.tar.gz'
Content type 'application/x-gzip' length 1129355 bytes (1.1 MB)
downloaded 1.1 MB

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

ERROR: dependency 'processx' is not available for package 'callr'
* removing 'C:/Users/MEMolina/Documents/R/win-library/3.4/callr'
In R CMD INSTALL
Warning in install.packages :
  running command '"C:/PROGRA~1/R/R-34~1.4/bin/x64/R" CMD INSTALL -l "C:\Users\MEMolina\Documents\R\win-library\3.4" C:\Users\MEMolina\AppData\Local\Temp\RtmpiItALa/downloaded_packages/callr_3.4.2.tar.gz' had status 1
Warning in install.packages :
  installation of package ‘callr’ had non-zero exit status
ERROR: dependency 'rlang' is not available for package 'lifecycle'
* removing 'C:/Users/MEMolina/Documents/R/win-library/3.4/lifecycle'
In R CMD INSTALL
Warning in install.packages :
  running command '"C:/PROGRA~1/R/R-34~1.4/bin/x64/R" CMD INSTALL -l "C:\Users\MEMolina\Documents\R\win-library\3.4" C:\Users\MEMolina\AppData\Local\Temp\RtmpiItALa/downloaded_packages/lifecycle_0.1.0.tar.gz' had status 1
Warning in install.packages :
  installation of package ‘lifecycle’ had non-zero exit status
ERROR: dependencies 'dplyr', 'purrr', 'tibble', 'tidyr' are not available for package 'broom'
* removing 'C:/Users/MEMolina/Documents/R/win-library/3.4/broom'
In R CMD INSTALL
Warning in install.packages :
  running command '"C:/PROGRA~1/R/R-34~1.4/bin/x64/R" CMD INSTALL -l "C:\Users\MEMolina\Documents\R\win-library\3.4" C:\Users\MEMolina\AppData\Local\Temp\RtmpiItALa/downloaded_packages/broom_0.5.4.tar.gz' had status 1
Warning in install.packages :
  installation of package ‘broom’ had non-zero exit status
ERROR: dependencies 'dplyr', 'purrr', 'rlang', 'tibble' are not available for package 'dbplyr'
* removing 'C:/Users/MEMolina/Documents/R/win-library/3.4/dbplyr'
In R CMD INSTALL
Warning in install.packages :
  running command '"C:/PROGRA~1/R/R-34~1.4/bin/x64/R" CMD INSTALL -l "C:\Users\MEMolina\Documents\R\win-library\3.4" C:\Users\MEMolina\AppData\Local\Temp\RtmpiItALa/downloaded_packages/dbplyr_1.4.2.tar.gz' had status 1
Warning in install.packages :
  installation of package ‘dbplyr’ had non-zero exit status
ERROR: dependencies 'rlang', 'tibble' are not available for package 'ggplot2'
* removing 'C:/Users/MEMolina/Documents/R/win-library/3.4/ggplot2'
In R CMD INSTALL
Warning in install.packages :
  running command '"C:/PROGRA~1/R/R-34~1.4/bin/x64/R" CMD INSTALL -l "C:\Users\MEMolina\Documents\R\win-library\3.4" C:\Users\MEMolina\AppData\Local\Temp\RtmpiItALa/downloaded_packages/ggplot2_3.2.1.tar.gz' had status 1
Warning in install.packages :
  installation of package ‘ggplot2’ had non-zero exit status
ERROR: dependencies 'rlang', 'vctrs' are not available for package 'hms'
* removing 'C:/Users/MEMolina/Documents/R/win-library/3.4/hms'
In R CMD INSTALL
Warning in install.packages :
  running command '"C:/PROGRA~1/R/R-34~1.4/bin/x64/R" CMD INSTALL -l "C:\Users\MEMolina\Documents\R\win-library\3.4" C:\Users\MEMolina\AppData\Local\Temp\RtmpiItALa/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 'openssl' is not available for package 'httr'
* removing 'C:/Users/MEMolina/Documents/R/win-library/3.4/httr'
In R CMD INSTALL
Warning in install.packages :
  running command '"C:/PROGRA~1/R/R-34~1.4/bin/x64/R" CMD INSTALL -l "C:\Users\MEMolina\Documents\R\win-library\3.4" C:\Users\MEMolina\AppData\Local\Temp\RtmpiItALa/downloaded_packages/httr_1.4.1.tar.gz' had status 1
Warning in install.packages :
  installation of package ‘httr’ had non-zero exit status
ERROR: dependencies 'rlang', 'vctrs' are not available for package 'pillar'
* removing 'C:/Users/MEMolina/Documents/R/win-library/3.4/pillar'
In R CMD INSTALL
Warning in install.packages :
  running command '"C:/PROGRA~1/R/R-34~1.4/bin/x64/R" CMD INSTALL -l "C:\Users\MEMolina\Documents\R\win-library\3.4" C:\Users\MEMolina\AppData\Local\Temp\RtmpiItALa/downloaded_packages/pillar_1.4.3.tar.gz' had status 1
Warning in install.packages :
  installation of package ‘pillar’ had non-zero exit status
ERROR: dependencies 'broom', 'dplyr', 'purrr', 'rlang', 'tibble', 'tidyr' are not available for package 'modelr'
* removing 'C:/Users/MEMolina/Documents/R/win-library/3.4/modelr'
In R CMD INSTALL
Warning in install.packages :
  running command '"C:/PROGRA~1/R/R-34~1.4/bin/x64/R" CMD INSTALL -l "C:\Users\MEMolina\Documents\R\win-library\3.4" C:\Users\MEMolina\AppData\Local\Temp\RtmpiItALa/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: dependencies 'callr', 'rlang' are not available for package 'reprex'
* removing 'C:/Users/MEMolina/Documents/R/win-library/3.4/reprex'
In R CMD INSTALL
Warning in install.packages :
  running command '"C:/PROGRA~1/R/R-34~1.4/bin/x64/R" CMD INSTALL -l "C:\Users\MEMolina\Documents\R\win-library\3.4" C:\Users\MEMolina\AppData\Local\Temp\RtmpiItALa/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 'xml2', 'httr' are not available for package 'rvest'
* removing 'C:/Users/MEMolina/Documents/R/win-library/3.4/rvest'
In R CMD INSTALL
Warning in install.packages :
  running command '"C:/PROGRA~1/R/R-34~1.4/bin/x64/R" CMD INSTALL -l "C:\Users\MEMolina\Documents\R\win-library\3.4" C:\Users\MEMolina\AppData\Local\Temp\RtmpiItALa/downloaded_packages/rvest_0.3.5.tar.gz' had status 1
Warning in install.packages :
  installation of package ‘rvest’ had non-zero exit status
ERROR: dependencies 'broom', 'dbplyr', 'dplyr', 'ggplot2', 'haven', 'hms', 'httr', 'modelr', 'pillar', 'purrr', 'reprex', 'rlang', 'rvest', 'tibble', 'tidyr', 'xml2' are not available for package 'tidyverse'
* removing 'C:/Users/MEMolina/Documents/R/win-library/3.4/tidyverse'
In R CMD INSTALL
Warning in install.packages :
  running command '"C:/PROGRA~1/R/R-34~1.4/bin/x64/R" CMD INSTALL -l "C:\Users\MEMolina\Documents\R\win-library\3.4" C:\Users\MEMolina\AppData\Local\Temp\RtmpiItALa/downloaded_packages/tidyverse_1.3.0.tar.gz' had status 1
Warning in install.packages :
  installation of package ‘tidyverse’ had non-zero exit status

This isn't the solution, but are you using R 3.4.* for a reason? If not, you should consider upgrading (the current version is 3.6.2). The 3.5 upgrade was a major change, so you will need to reinstall packages, but it will be worth it moving forward.

Now, onto the output you pasted:

There are a few problems going on there, the first of which is that your system is unable to move some packages to their proper destination, e.g.:

Warning in install.packages :
  unable to move temporary installation ‘C:\Users\MEMolina\Documents\R\win-library\3.4\file27506368d96\processx’ to ‘C:\Users\MEMolina\Documents\R\win-library\3.4\processx’

There could be several reasons for this, but we'll need some system information to help you troubleshoot (see my answer from another question, below, and the linked StackOverflow thread)

Later in the error message, you seem to have an internet connectivity issue:

trying URL 'https://cran.rstudio.com/src/contrib/BH_1.72.0-3.tar.gz'
Warning in install.packages :
  InternetOpenUrl failed: 'The operation timed out'
Error in download.file(url, destfile, method, mode = "wb", ...) : 
  cannot open URL 'https://cran.rstudio.com/src/contrib/BH_1.72.0-3.tar.gz'
Warning in install.packages :
  download of package ‘BH’ failed

I'm not sure why exactly this would occur, but both issues mean that you subsequently can't install packages that depend on packages that failed to install. For example:


ERROR: dependency 'processx' is not available for package 'callr'
* removing 'C:/Users/MEMolina/Documents/R/win-library/3.4/callr'

Because processx didn't end up in your library, you can't install callr, which depends on processx.

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