Installation of tidyverse does not finish and R Studio is very slow

Hi, I am having problems to install tidyverse package. This is the command that I am using:

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

And the output is this:

Installing package into ‘\\nmbu.no/my/Home/Documents/R/win-library/3.5’
(as ‘lib’ is unspecified)
also installing the dependencies ‘BH’, ‘cellranger’, ‘progress’, ‘rmarkdown’, ‘selectr’, ‘dbplyr’, ‘lubridate’, ‘modelr’, ‘readr’, ‘readxl’, ‘reprex’, ‘rvest’, ‘xml2’


  There is a binary version available but the source version is later:
       binary source needs_compilation
modelr  0.1.2  0.1.3             FALSE

It does install lots of dependencies (I can't put because number of link restriction) and when it get to this one:

trying URL 'https://cran.r-project.org/bin/windows/contrib/3.5/tidyverse_1.2.1.zip'
Content type 'application/zip' length 92563 bytes (90 KB)
downloaded 90 KB

The installation did not finish. I am also feeling that R Studio is very slow and I don't know if this is connected with the issue of tidyverse.

I appreciate your help

Alex

We don't have enough information to help you because, you are not showing any error message, try pasting the output between three backticks like this ( I already did that with your original post)

```
trying URL 'https://cran.r-project.org/bin/windows/contrib/3.5/tidyverse_1.2.1.zip'
Content type 'application/zip' length 92563 bytes (90 KB)
downloaded 90 KB
```

Also especify your versions of R, Rstudio and OS

I am sorry Andres for the lack of information not very experienced on this here is the output that I get after
This command install.packages("tidyverse", dependencies = TRUE )
is:

Installing package into ‘\\nmbu.no/my/Home/Documents/R/win-library/3.5’
(as ‘lib’ is unspecified)
also installing the dependencies ‘BH’, ‘cellranger’, ‘progress’, ‘rmarkdown’, ‘selectr’, ‘dbplyr’, ‘lubridate’, ‘modelr’, ‘readr’, ‘readxl’, ‘reprex’, ‘rvest’, ‘xml2’


  There is a binary version available but the source version is later:
       binary source needs_compilation
modelr  0.1.2  0.1.3             FALSE

trying URL 'https://cran.r-project.org/bin/windows/contrib/3.5/BH_1.69.0-1.zip'
Content type 'application/zip' length 19008161 bytes (18.1 MB)
downloaded 18.1 MB

trying URL 'https://cran.r-project.org/bin/windows/contrib/3.5/cellranger_1.1.0.zip'
Content type 'application/zip' length 103004 bytes (100 KB)
downloaded 100 KB

trying URL 'https://cran.r-project.org/bin/windows/contrib/3.5/progress_1.2.0.zip'
Content type 'application/zip' length 80433 bytes (78 KB)
downloaded 78 KB

trying URL 'https://cran.r-project.org/bin/windows/contrib/3.5/rmarkdown_1.11.zip'
Content type 'application/zip' length 3559607 bytes (3.4 MB)
downloaded 3.4 MB

trying URL 'https://cran.r-project.org/bin/windows/contrib/3.5/selectr_0.4-1.zip'
Content type 'application/zip' length 458661 bytes (447 KB)
downloaded 447 KB

trying URL 'https://cran.r-project.org/bin/windows/contrib/3.5/dbplyr_1.3.0.zip'
Content type 'application/zip' length 538314 bytes (525 KB)
downloaded 525 KB

trying URL 'https://cran.r-project.org/bin/windows/contrib/3.5/lubridate_1.7.4.zip'
Content type 'application/zip' length 1568061 bytes (1.5 MB)
downloaded 1.5 MB

trying URL 'https://cran.r-project.org/bin/windows/contrib/3.5/readr_1.3.1.zip'
Content type 'application/zip' length 1569607 bytes (1.5 MB)
downloaded 1.5 MB

trying URL 'https://cran.r-project.org/bin/windows/contrib/3.5/readxl_1.2.0.zip'
Content type 'application/zip' length 1530363 bytes (1.5 MB)
downloaded 1.5 MB

trying URL 'https://cran.r-project.org/bin/windows/contrib/3.5/reprex_0.2.1.zip'
Content type 'application/zip' length 405171 bytes (395 KB)
downloaded 395 KB

trying URL 'https://cran.r-project.org/bin/windows/contrib/3.5/rvest_0.3.2.zip'
Content type 'application/zip' length 881275 bytes (860 KB)
downloaded 860 KB

trying URL 'https://cran.r-project.org/bin/windows/contrib/3.5/xml2_1.2.0.zip'
Content type 'application/zip' length 3605532 bytes (3.4 MB)
downloaded 3.4 MB

trying URL 'https://cran.r-project.org/bin/windows/contrib/3.5/tidyverse_1.2.1.zip'
Content type 'application/zip' length 92563 bytes (90 KB)
downloaded 90 KB

The issue is that it stays like that for hours and it looks that it doesn't finish to install the package (I see the red "stop" icon :stop_sign: active). My OS is Windows 10 Enterprise, 64-bit. Rstudio version is 1.1.463 and R version is 3.5.2 (2018-12-20)"

Is this a network drive? If so, it can be very challenging to run R with packages loaded on a network drive. Is it possible to set your R Home directory to a local drive?

HI, jdlong your are probably right. I am using the laptop provided by my university. How can I set up R in a local drive?

this article should help.

One way is to put your library that holds your packages under your C:\ drive. I have done this on my computer that uses a shared network.

You do this by:

  • Create a folder called library on your C:\ drive. For instance, I have one here: C:\Users\xfilwas\R\library
  • In windows, create an environment variable called R_LIBS_USER and use your path to the library on the C:\ drive as value. Just search for edit environment variable and create a new one.

By doing this RStudio won't search your shared network (making RStudio slow) for the packages.

1 Like

Hi, thanks for the suggestion I tried to do that but it looks that I don't have such as privileges in the system. when I go to edit environment variable windows tells me "the requested action requires elevation".

sounds like you need to get your IT team to help make the change.

Yes, you might need administrator privelege to edit environtment variables. It's different from system to system. But yeah, find someone friendly at your IT-deparment :slight_smile: When I have talked to IT-departments I tell them about R and Open Source and what it is to give them some background on why I need administrator rights.

Hi thanks everyone for you valuable help.

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

If you have a query related to it or one of the replies, start a new topic and refer back with a link.