Installation of tidyverse does not finish

Hi, having a similar problem to this: https://community.rstudio.com/t/installation-of-tidyverse-does-not-finish-and-r-studio-is-very-slow/23253

> install.packages("tidyverse")
WARNING: Rtools is required to build R packages but is not currently installed. Please download and install the appropriate version of Rtools before proceeding:

https://cran.rstudio.com/bin/windows/Rtools/
Installing package into ‘C:/Users/ereilly007/Documents/R/win-library/3.6’
(as ‘lib’ is unspecified)
also installing the dependencies ‘tinytex’, ‘BH’, ‘plogr’, ‘DBI’, ‘gtable’, ‘lazyeval’, ‘scales’, ‘viridisLite’, ‘withr’, ‘curl’, ‘mime’, ‘openssl’, ‘clipr’, ‘progress’, ‘callr’, ‘fs’, ‘rmarkdown’, ‘whisker’, ‘selectr’, ‘stringi’, ‘lifecycle’, ‘broom’, ‘dplyr’, ‘dbplyr’, ‘forcats’, ‘ggplot2’, ‘haven’, ‘httr’, ‘jsonlite’, ‘lubridate’, ‘modelr’, ‘purrr’, ‘readr’, ‘readxl’, ‘reprex’, ‘rstudioapi’, ‘rvest’, ‘stringr’, ‘tibble’, ‘tidyr’, ‘xml2’


  There are binary versions available but the source versions are later:
        binary source needs_compilation
tinytex   0.15   0.16             FALSE
curl       4.0    4.1              TRUE

  Binaries will be installed
trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.6/BH_1.69.0-1.zip'
Content type 'application/zip' length 19008275 bytes (18.1 MB)
downloaded 18.1 MB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.6/plogr_0.2.0.zip'
Content type 'application/zip' length 18869 bytes (18 KB)
downloaded 18 KB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.6/DBI_1.0.0.zip'
Content type 'application/zip' length 889023 bytes (868 KB)
downloaded 868 KB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.6/gtable_0.3.0.zip'
Content type 'application/zip' length 434423 bytes (424 KB)
downloaded 424 KB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.6/lazyeval_0.2.2.zip'
Content type 'application/zip' length 173565 bytes (169 KB)
downloaded 169 KB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.6/scales_1.0.0.zip'
Content type 'application/zip' length 1073858 bytes (1.0 MB)
downloaded 1.0 MB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.6/viridisLite_0.3.0.zip'
Content type 'application/zip' length 60760 bytes (59 KB)
downloaded 59 KB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.6/withr_2.1.2.zip'
Content type 'application/zip' length 152192 bytes (148 KB)
downloaded 148 KB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.6/curl_4.0.zip'
Content type 'application/zip' length 3839462 bytes (3.7 MB)
downloaded 3.7 MB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.6/mime_0.7.zip'
Content type 'application/zip' length 48231 bytes (47 KB)
downloaded 47 KB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.6/openssl_1.4.1.zip'
Content type 'application/zip' length 3971770 bytes (3.8 MB)
downloaded 3.8 MB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.6/clipr_0.7.0.zip'
Content type 'application/zip' length 52055 bytes (50 KB)
downloaded 50 KB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.6/progress_1.2.2.zip'
Content type 'application/zip' length 84995 bytes (83 KB)
downloaded 83 KB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.6/callr_3.3.1.zip'
Content type 'application/zip' length 338604 bytes (330 KB)
downloaded 330 KB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.6/fs_1.3.1.zip'
Content type 'application/zip' length 983069 bytes (960 KB)
downloaded 960 KB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.6/rmarkdown_1.15.zip'
Content type 'application/zip' length 3594703 bytes (3.4 MB)
downloaded 3.4 MB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.6/whisker_0.4.zip'
Content type 'application/zip' length 83376 bytes (81 KB)
downloaded 81 KB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.6/selectr_0.4-1.zip'
Content type 'application/zip' length 488478 bytes (477 KB)
downloaded 477 KB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.6/stringi_1.4.3.zip'
Content type 'application/zip' length 15297905 bytes (14.6 MB)
downloaded 14.6 MB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.6/lifecycle_0.1.0.zip'
Content type 'application/zip' length 84701 bytes (82 KB)
downloaded 82 KB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.6/broom_0.5.2.zip'
Content type 'application/zip' length 2013615 bytes (1.9 MB)
downloaded 1.9 MB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.6/dplyr_0.8.3.zip'
Content type 'application/zip' length 3265529 bytes (3.1 MB)
downloaded 3.1 MB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.6/dbplyr_1.4.2.zip'
Content type 'application/zip' length 605890 bytes (591 KB)
downloaded 591 KB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.6/forcats_0.4.0.zip'
Content type 'application/zip' length 345884 bytes (337 KB)
downloaded 337 KB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.6/ggplot2_3.2.1.zip'
Content type 'application/zip' length 3974894 bytes (3.8 MB)
downloaded 3.8 MB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.6/haven_2.1.1.zip'
Content type 'application/zip' length 1028504 bytes (1004 KB)
downloaded 1004 KB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.6/httr_1.4.1.zip'
Content type 'application/zip' length 511117 bytes (499 KB)
downloaded 499 KB

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

trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.6/lubridate_1.7.4.zip'
Content type 'application/zip' length 1579414 bytes (1.5 MB)
downloaded 1.5 MB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.6/modelr_0.1.5.zip'
Content type 'application/zip' length 202021 bytes (197 KB)
downloaded 197 KB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.6/purrr_0.3.2.zip'
Content type 'application/zip' length 421247 bytes (411 KB)
downloaded 411 KB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.6/readr_1.3.1.zip'
Content type 'application/zip' length 1589603 bytes (1.5 MB)
downloaded 1.5 MB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.6/readxl_1.3.1.zip'
Content type 'application/zip' length 1530436 bytes (1.5 MB)
downloaded 1.5 MB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.6/reprex_0.3.0.zip'
Content type 'application/zip' length 430290 bytes (420 KB)
downloaded 420 KB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.6/rstudioapi_0.10.zip'
Content type 'application/zip' length 239980 bytes (234 KB)
downloaded 234 KB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.6/rvest_0.3.4.zip'
Content type 'application/zip' length 915917 bytes (894 KB)
downloaded 894 KB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.6/stringr_1.4.0.zip'
Content type 'application/zip' length 217033 bytes (211 KB)
downloaded 211 KB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.6/tibble_2.1.3.zip'
Content type 'application/zip' length 337331 bytes (329 KB)
downloaded 329 KB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.6/tidyr_1.0.0.zip'
Content type 'application/zip' length 1296146 bytes (1.2 MB)
downloaded 1.2 MB

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

trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.6/tidyverse_1.2.1.zip'
Content type 'application/zip' length 93049 bytes (90 KB)
downloaded 90 KB

The solution in the link seems to be to set R Home directory to a local drive but I already have my working directory as the C: drive.
I'm using R version 3.6.1 and RStudio version 1.1335.

I'm pretty new to this so not sure if any more info is needed, hope someone can help!
Thanks!

Do you have Rtools installed on your machine? You can find Rtools binary here - https://cran.r-project.org/bin/windows/Rtools/ (note, it's not an R package, but additional software you need to install).

I am on a company laptop so need permission to install Rtools. I've requested permission so will get back to you when I have it installed.
Thanks!

1 Like

Hi @ereilly006!

While you're waiting, you might try installing curl directly? Based on the output above, curl seemed to be only package listed as needing compilation (and therefore requiring RTools), and it looks like a Windows binary of version 4.1 is now available on CRAN:
https://cran.r-project.org/package=curl
(I'm not sure if it was missing from CRAN when you tried, or if it was perhaps just missing from your local CRAN mirror? Either can happen!)

tinytex 0.16 is also now available as a Windows binary on CRAN, but that seems less likely to have been the problem since it doesn't require compilation.

Either way, installing those two individually and then trying the tidyverse install again might reveal if there's a deeper problem lurking.

1 Like

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