check if package is available and provide installation instruction if not available

package_check(
  pkg_name,
  repository = c("CRAN", "Bioc", "github"),
  github_repo = NULL
)

Arguments

pkg_name

name of package

repository

where is the package

github_repo

name of github repository if needed