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

Installation issue due to graph package not on CRAN #34

Open
lepennec opened this issue Jun 24, 2018 · 3 comments
Open

Installation issue due to graph package not on CRAN #34

lepennec opened this issue Jun 24, 2018 · 3 comments

Comments

@lepennec
Copy link

Hi,
I would like to report that I had an issue updating CodeDepends on Linux: it requires graph which is not available on CRAN. I was able to update CodeDepends by installing the graph package from BioConductor:

source("https://bioconductor.org/biocLite.R")
biocLite("graph")

Not sure it is the best way.

I assume this is related to #30.

Thnk your for your work,

Erwan

@wlandau
Copy link

wlandau commented Jun 24, 2018

@gmbecker
Copy link
Collaborator

Erwin,

graph is a Bioconductor package, which is why it isn't installable the normal way from CRAN. That said, CRAN does allow Bioconductor packages as dependencies, and Bioc packages just recently got easier to install in a CRAN centric way.

The way to install graph (or any other Bioc package) is to

  1. Install the BiocManager package from CRAN
  2. load BiocManager normally, via library,
  3. install the packages via the install function in BiocManager

So you can do:

install.packages("BiocManager")
library(BiocManager)
BiocManager::install("graph")

And this should work. You can also use install to install CodeDepends (or even drake) and it will manage getting all of the necessary dependencies from both CRAN and Bioc:

library(BiocManager)
BiocManager::install("drake")

I hope that helps and allows yo uto use the packages without further difficulty.

Best,
~G

@lepennec
Copy link
Author

lepennec commented Jun 25, 2018 via email

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

3 participants