r-lib / rlang

Low-level API for programming with R
https://rlang.r-lib.org
Other
502 stars 140 forks source link

check_installed support the package of bioconductor better. #1646

Closed xiangpin closed 1 year ago

xiangpin commented 1 year ago

The check_installed used install.packages to install package if pak was not installed by default.

I think if it can choose the install method in the check_installed, for example check_installed("XX", install.method = BiocManager::install) or check_installed("XX", install.method = pak::pkg_install) or check_installed("XX", install.method=install.packages) it will be better.