pac_isin: Checking if a package is in repositories

View source: R/in_last.R

pac_isinR 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)

pacs documentation built on Aug. 19, 2023, 1:08 a.m.