using utils::available.packages to check if package is in repositories.
Usage
pac_isin(pac, repos = biocran_repos())Arguments
- pac
charactera package name.- repos
character vector base URLs of the repositories to use. By default checking CRAN and newest Bioconductor per R version. Default
pacs::biocran_repos()
Examples
if (FALSE) { # \dontrun{
pac_isin("dplyr")
pac_isin("dplyr", repos = "https://cran.rstudio.com/")
pac_isin("dplyr", repos = biocran_repos()[grep("Bio", names(biocran_repos()))])
} # }