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

BiocManager does not respect dependencies = TRUE when the non-Suggests packages have already been installed #161

Open
mtmorgan opened this issue Mar 17, 2023 · 0 comments

Comments

@mtmorgan
Copy link
Collaborator

mtmorgan commented Mar 17, 2023

Reported via email

.libPaths(tempfile())
BiocManager::install('phangorn') # installs phangorn

So far so good, but

> BiocManager::install('phangorn', dependencies = TRUE)
Bioconductor version 3.17 (BiocManager 1.30.20), R Under development (unstable)
  (2023-02-21 r83887)
Old packages: 'MASS', 'mgcv', 'survival'
Update all/some/none? [a/s/n]: n
Warning message:
package(s) not installed when version(s) same as or greater than current; use
  `force = TRUE` to re-install: 'phangorn'
>

so the dependencies are not installed...

install.packages() says

> install.packages('phangorn', dependencies = TRUE, repos = "https://cran.r-project.org")
Installing package into ‘/private/var/folders/yn/gmsh_22s2c55v816r6d51fx1tnyl61/T/RtmpsjHQs2’
(as ‘lib’ is unspecified)
Warning: dependencies ‘Biostrings’, ‘seqLogo’ are not available
also installing the dependencies ‘htmlwidgets’, ‘bslib’, ...

It also re-installs 'phangorn', which is not desirable.

I guess a workaround is to follow the BiocManager advice, and install missing dependencies and re-install phangorn.

BiocManager::install('phangorn', dependencies = TRUE, force = TRUE)
> packageVersion('BiocManager')
[1] ‘1.30.20’
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

1 participant