-
Notifications
You must be signed in to change notification settings - Fork 1
Description
Hi all,
Yesterday I tried to install a new package, and was confronted with the option:
Do you want to install from sources the packages which need compilation? y/n
I didn't really know what that meant, so I said yes (I now realise that was the incorrect option to choose...). The package appeared to install, but then at the end of some unusual white script (which I was not familiar with when installing a package - I assume related to selecting yes above), I noticed the line:
installation of package had non-zero exit status
I tried to load the package via library(), but I was told that the package didn't exist. So I assumed the installation hadn't worked, but the package was just for interest and not essential to what I was doing, and so I ignored it and carried on with my work. Only to discover that all of the packages I had currently loaded in my R session had stopped working.
So I closed down my Rstudio session, re-opened, and tried to re-load my packages. None of them loaded. So I closed down R studio, opened the R console, and ran update.packages(). I then re-opened R studio, and all of the packages appear to load now, except tidyverse. When I try to load it, I get the following messages:
`ERROR: dependency 'rlang' is not available for package 'lifecycle'
- removing 'C:/Program Files/R/R-3.4.0/library/lifecycle'
Warning in install.packages :
running command '"C:/PROGRA1/R/R-341.0/bin/x64/R" CMD INSTALL -l "C:\Program Files\R\R-3.4.0\library" C:\Users\mnn1\AppData\Local\Temp\Rtmp8Q0MBc/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: dependency 'rlang' is not available for package 'hms' - removing 'C:/Program Files/R/R-3.4.0/library/hms'
Warning in install.packages :
running command '"C:/PROGRA1/R/R-341.0/bin/x64/R" CMD INSTALL -l "C:\Program Files\R\R-3.4.0\library" C:\Users\mnn1\AppData\Local\Temp\Rtmp8Q0MBc/downloaded_packages/hms_0.5.2.tar.gz' had status 1
Warning in install.packages :
installation of package ‘hms’ had non-zero exit status
ERROR: dependencies 'dplyr', 'hms', 'purrr', 'rlang', 'tibble', 'tidyr' are not available for package 'tidyverse' - removing 'C:/Program Files/R/R-3.4.0/library/tidyverse'
Warning in install.packages :
running command '"C:/PROGRA1/R/R-341.0/bin/x64/R" CMD INSTALL -l "C:\Program Files\R\R-3.4.0\library" C:\Users\mnn1\AppData\Local\Temp\Rtmp8Q0MBc/downloaded_packages/tidyverse_1.3.0.tar.gz' had status 1
Warning in install.packages :
installation of package ‘tidyverse’ had non-zero exit status`
Based on the above, it looks like some of the dependencies are failing to load. I have tried to install some of the mentioned dependencies (for tidyverse) such as dplyr independently, and I keep getting the option: Do you want to install from sources the packages which need compilation? which I have never seen before when installing/loading these packages. I have tried both y and n, and neither option successfully installs the packages.
I'm now out of ideas - this is beyond my knowledge. Any suggestions most welcome!!
Cheers
Matt