pac_last: Getting the most recent package version

View source: R/in_last.R

pac_lastR Documentation

Getting the most recent package version

Description

using utils::available.packages to get the newest package version.

Usage

pac_last(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

character most recent package version.

Note

Results are cached for 30 minutes with memoise package. For Bioconductor the newest one per R version.

Examples

## Not run: 
pac_last("dplyr")
pac_last("S4Vectors")

## End(Not run)

pacs documentation built on May 11, 2022, 1:09 a.m.