Closed gadenbuie closed 5 years ago
Hi @gadenbuie,
Great work! I love pacman
and came on here to suggest this too.
I think pacman
should just depend on BiocManager
(using the Imports:
field in DESCRIPTION
) and then the default should be to install the package from bioc if its available there? What do you think?
I can't think of any reason why installing from bioc should be turned off by default.
Thanks @rorynolan. I think that including BiocManager in DESCRIPTION
is necessary and something I can add. But I think it would be good to get input from @trinker or @Dasonk about whether BiocManager should be in Imports or Suggests.
Personally, after a second look at this PR, I'd like to put it in Imports and then simplify the code so that the default behavior is to (try to) install from Bioconductor if a package isn't found on CRAN. I was trying to accommodate this comment, but I feel it's probably best for the user for pacman to do its best to install the requested package.
Both pacman and BiocManager are very light-weight -- BiocManager only imports utils.
On second thought, adding BiocManager to Imports really simplifies this PR considerably, so I went ahead and added those commits. As it stands, this PR now
Adds BiocManager to Imports and uses BiocManager::install()
instead of BiocInstaller::biocLite()
Adds a try_bioconductor
parameter to p_install()
with default of TRUE
.
Great! This is exactly how I would like it to be.
Isn't it BiocManager::install()
, can take care of package installation across CRAN, Bioconductor and github ? If so, what is the need for p_install()
and p_install_gh()
as 2 separate commands?
Awesome! Thanks for the PR.
Implements #109:
skip_bioc
parameter top_install()
(default NULL) that resolves toTRUE
if BiocManager is not installed.p_install()
fromtry_bioc()
to install BiocManager if not installed andskip_bioc = FALSE
.BiocManager::install()
to install from Bioconductor, which by default prompts user if updates are desired and session is interactive. Updates are suppressed otherwise.Happy to tweak this PR as needed, feedback is welcome.