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

installing a local package with BiocManager? #88

Open
lwaldron opened this issue Jan 2, 2021 · 5 comments
Open

installing a local package with BiocManager? #88

lwaldron opened this issue Jan 2, 2021 · 5 comments

Comments

@lwaldron
Copy link

lwaldron commented Jan 2, 2021

Unless I've missed something, you have to use an alternative like devtools::install('.', dependencies=TRUE, build_vignettes=TRUE, repos = BiocManager::repositories()) to install a local package normally or in Dockerfiles, taking us away from BiocManager as our one-and-only package manager. Could you either implement a local package installer, or document the recommended approach? Here's an example in the wild that could be a recommended approach. Note, it does not use the github remotes installation because it is meant to also run from alternative git branches.

https://github.com/seandavi/BuildABiocWorkshop/blob/3161063ee879720f866ba109048247906dea5a93/Dockerfile#L9

@mtmorgan
Copy link
Collaborator

mtmorgan commented Jan 2, 2021

I would rather document an alternative approach, since installing locally is not consistent with bioconductor best practices. PR welcome but I won't write one.

@lwaldron
Copy link
Author

lwaldron commented Jan 2, 2021

How do you install and test when developing locally - with install.packages or devtools::install?

@vjcitn
Copy link

vjcitn commented Jan 2, 2021

My gut reaction here is that the best practice is for a package to start its life in github. Then BiocManager can install it.

@mtmorgan
Copy link
Collaborator

mtmorgan commented Jan 2, 2021

Personally I use devtools::load_all() etc leading naturally to ::check(); if i actually install the package it's usually from the command line R CMD INSTALL . so that I don't get anything unexpected from a devtools installation. Also there is no need to install package dependencies, other than via BiocManager::install()during the development process.

@vjcitn
Copy link

vjcitn commented Jan 3, 2021

Good to know; my thought is that version control should commence as soon as possible.

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