pac_isin {pacs}R Documentation

Checking if a package is in repositories

Description

using utils::available.packages to check if package is in repositories.

Usage

pac_isin(pac, repos = biocran_repos())

Arguments

pac

character a 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()

Value

logical if a package is inside repositories.

Note

Results are cached for 30 minutes with memoise package.

Examples

## Not run: 
pac_isin("dplyr")
pac_isin("dplyr", repos = "https://cran.rstudio.com/")
pac_isin("dplyr", repos = biocran_repos()[grep("Bio", names(biocran_repos()))])

## End(Not run)

[Package pacs version 0.5.1 Index]