-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
R Packages gone wonky #36
Comments
Woohoo! Welcome to dependency hell! Good grief! That is quite a mess indeed! What package was it that you originally tried to install? It certainly doesn't seem to play nice with much other stuff... Did it come from CRAN?? Installing from "sources" just means that you are compiling raw code, as opposed to something that was already compiled for your system (Linux, Windows, Mac, whatever you're running). Anyway, do I understand correctly that currently, everything seems to be working as it should except
Then try to reinstall tidyverse:
If you have to compile from source, do, but that would suggest you have a wider issue, I think. Have you removed the package that originally messed things up in the first place, by the way? If not, I would start with that. What version of R are you on? Try |
Grrr, how annoying! I can't even remember what the package was, as it's not in my library as it didn't install properly. But it was off GitHib, not CRAN. I'm on R vers 3.4.0, and I see that the latest version is 3.6.1. Perhaps the simplest thing to do would be to uninstall R and reinstall, and then as you say, just install packages as I go along. Best way to uninstall R? Do I just run the unins000.exe file in C>Program Files>R>R-3.4.0? Will that get rid of the package library automatically? Thanks! |
Issue with packages off Github (or other sources) is that obvs they haven't gone through all the stringent checks that CRAN imposes. Which are partly to do with exactly these sorts of potential issues... Yea if you are due an upgrade anyway, I would probably do that. It's not as bad as it sounds. You might as well do RStudio at the same time, too, if you need to. It's been a while since I have done this on Windows, but I think that as long as you go through the "official" uninstall procedures (probably cleanest to do this through "System > Install remove/Software" or whatever they are calling it now), it should remove everthing correctly. Reboot after you've done it, and check to see if there is anything left in the installation directories - if so, chuck that out too. Then remove RStudio, reboot again, download new versions of both R and RStudio, and install. |
OK perfect, I will just do that. It sounds cleaner that trying to faff around with different bits of tidyverse. I could probably use the upgrade anyway! Thanks @jejoenje ! |
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, excepttidyverse
. When I try to load it, I get the following messages:`ERROR: dependency 'rlang' is not available for package 'lifecycle'
Warning in install.packages :
running command '"C:/PROGRA
1/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 1Warning in install.packages :
installation of package ‘lifecycle’ had non-zero exit status
ERROR: dependency 'rlang' is not available for package 'hms'
Warning in install.packages :
running command '"C:/PROGRA
1/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 1Warning 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'
Warning in install.packages :
running command '"C:/PROGRA
1/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 1Warning 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 bothy
andn
, and neither option successfully installs the packages.I'm now out of ideas - this is beyond my knowledge. Any suggestions most welcome!!
Cheers
Matt
The text was updated successfully, but these errors were encountered: