powered by
using utils::available.packages to check if package is in repositories.
utils::available.packages
pac_isin(pac, repos = biocran_repos())
logical if a package is inside repositories.
logical
character a package name.
character
character vector base URLs of the repositories to use. By default checking CRAN and newest Bioconductor per R version. Default pacs::biocran_repos()
pacs::biocran_repos()
if (FALSE) { pac_isin("dplyr") pac_isin("dplyr", repos = "https://cran.rstudio.com/") pac_isin("dplyr", repos = biocran_repos()[grep("Bio", names(biocran_repos()))]) }
Run the code above in your browser using DataLab