using utils::available.packages
to check if package is in repositories.
pac_isin(pac, repos = biocran_repos())
character
a package name.
character vector base URLs of the repositories to use. By default checking CRAN and newest Bioconductor per R version. Default pacs::biocran_repos()
logical
if a package is inside repositories.
Results are cached for 30 minutes with memoise
package.
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()))])
} # }