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

Issues with BioConductor packages #18

Closed
rprops opened this issue Nov 19, 2019 · 4 comments
Closed

Issues with BioConductor packages #18

rprops opened this issue Nov 19, 2019 · 4 comments

Comments

@rprops
Copy link

rprops commented Nov 19, 2019

Dear,

I've been trying to get jetpack to work for my repo. But I'm running into some issues with Bioconductor packages as dependencies.

I ran:

jetpack::init()
jetpack::add("Phenoflow", remote="CMET-UGent/Phenoflow_package")

But got the following warning:

Installing BiocGenerics (0.32.0) ... 
FAILED
Error: Failed to retrieve package sources for BiocGenerics 0.32.0 from CRAN (internet connectivity issue?)

I've tried the suggested solution on packrat, but to no avail. (rstudio/packrat#507)

jetpack::init()
options(repos=structure(BiocManager::repositories()))
jetpack::add("Phenoflow", remote="CMET-UGent/Phenoflow_package")

Any suggestions?

Thank you!

Ruben

@ankane
Copy link
Owner

ankane commented Nov 19, 2019

Hey @rprops, can you give the bioconductor2 branch a shot?

remotes::install_github("ankane/jetpack@bioconductor2")

Then restart your R session and do:

jetpack::add(c("BiocManager", "BiocGenerics"))

@ankane
Copy link
Owner

ankane commented Nov 19, 2019

On 2nd thought, not really happy with that approach. Instead, try updating the Repos: line in your packrat.lock manually to something like this:

Repos: CRAN=https://cloud.r-project.org/,
    BioCsoft=https://bioconductor.org/packages/3.10/bioc,
    BioCann=https://bioconductor.org/packages/3.10/data/annotation,
    BioCexp=https://bioconductor.org/packages/3.10/data/experiment,
    BioCworkflows=https://bioconductor.org/packages/3.10/workflows

(no need to use the branch above)

@rprops
Copy link
Author

rprops commented Nov 19, 2019

Already tried solution 1 and seems to have worked - I'll check out solution 2 later. Thanks for the quick fix @ankane !

@ankane
Copy link
Owner

ankane commented Dec 2, 2019

Updated the instructions here: https://github.com/ankane/jetpack#bioconductor

@ankane ankane closed this as completed Dec 2, 2019
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