Skip to content
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

Unable to install clusterProfiler - ggraph and igraph errors #525

Open
Adrian-Zet opened this issue Dec 2, 2022 · 3 comments
Open

Unable to install clusterProfiler - ggraph and igraph errors #525

Adrian-Zet opened this issue Dec 2, 2022 · 3 comments

Comments

@Adrian-Zet
Copy link

Dear clusterProfiler team,

I've been trying to install this package from both the BiocManager repository and the Github development version and I keep getting the same error:

ERROR: dependency ‘igraph’ is not available for package ‘tidygraph’
* removing ‘/export/home/math/saia/adrz/ratpack-bcbio/packrat/lib/x86_64-pc-linux-gnu/4.2.1/tidygraph’
ERROR: dependency ‘igraph’ is not available for package ‘graphlayouts’
* removing ‘/export/home/math/saia/adrz/ratpack-bcbio/packrat/lib/x86_64-pc-linux-gnu/4.2.1/graphlayouts’
ERROR: dependencies ‘igraph’, ‘tidygraph’, ‘graphlayouts’ are not available for package ‘ggraph’
* removing ‘/export/home/math/saia/adrz/ratpack-bcbio/packrat/lib/x86_64-pc-linux-gnu/4.2.1/ggraph’
ERROR: dependencies ‘ggraph’, ‘igraph’ are not available for package ‘enrichplot’
* removing ‘/export/home/math/saia/adrz/ratpack-bcbio/packrat/lib/x86_64-pc-linux-gnu/4.2.1/enrichplot’
ERROR: dependency ‘enrichplot’ is not available for package ‘clusterProfiler’
* removing ‘/export/home/math/saia/adrz/ratpack-bcbio/packrat/lib/x86_64-pc-linux-gnu/4.2.1/clusterProfiler’

The downloaded source packages are in
        ‘/tmp/user/1233/RtmpsRn7MY/downloaded_packages’
Warning messages:
1: In install.packages(...) :
  installation of package ‘igraph’ had non-zero exit status
2: In install.packages(...) :
  installation of package ‘tidygraph’ had non-zero exit status
3: In install.packages(...) :
  installation of package ‘graphlayouts’ had non-zero exit status
4: In install.packages(...) :
  installation of package ‘ggraph’ had non-zero exit status
5: In install.packages(...) :
  installation of package ‘enrichplot’ had non-zero exit status
6: In install.packages(...) :
  installation of package ‘clusterProfiler’ had non-zero exit status
  • I tried it both in a normal local R-4.2.2 installation and by using packrat to isolate the installation path. Unfortunately to no avail. Can you please provide some help. I also tried installing the igraph and ggraph packages separately, unfortunately with the same results.
@guidohooiveld
Copy link

guidohooiveld commented Dec 8, 2022

In case you were not able to solve this yet, please post the code you used to install in the 'normal' R installation. Now we only have info on the error, but not on what you tried.

This should work:
http://bioconductor.org/packages/release/bioc/html/clusterProfiler.html

if (!require("BiocManager", quietly = TRUE))
    install.packages("BiocManager")
BiocManager::install( c("clusterProfiler") )

@Adrian-Zet
Copy link
Author

Adrian-Zet commented Dec 8, 2022

Hello,

I managed to solve all the issues by following the following issue threads: igraph/rigraph#275, igraph/rigraph#477, and igraph/rigraph#335.

Also I had to perform the installation using:

BiocManager::install("clusterProfiler", dependencies = TRUE, INSTALL_opts = '--no-lock')

@guidohooiveld
Copy link

Thanks for reporting back, and good to hear you were able to solve it.

Based on the threads you link to, it likely had to do with an installation of conda that 'overruled' the default paths of your Linux installation? If so, i think it is good to mention (for the archive) that in such cases it good to check that the conda environment has been deactivated before installing igraph. igraph/rigraph#275 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants