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.
The
check_installed
usedinstall.packages
to install package ifpak
was not installed by default.I think if it can choose the
install
method in thecheck_installed
, for examplecheck_installed("XX", install.method = BiocManager::install)
orcheck_installed("XX", install.method = pak::pkg_install)
orcheck_installed("XX", install.method=install.packages)
it will be better.