pac_islast: Checking if a package version is the most recent one

View source: R/in_last.R

pac_islastR Documentation

Checking if a package version is the most recent one

Description

checking if a package version is the most recent one, by default the installed version is compared.

Usage

pac_islast(pac, version = NULL, lib.loc = .libPaths(), repos = biocran_repos())

Arguments

pac

character a package name.

version

character package version, by default the installed version is taken. Default: NULL

lib.loc

character vector, it is omitted for non NULL version. Default: .libPaths()

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. For Bioconductor if package is the newest one per R version.

Examples

## Not run: 
pac_islast("memoise")
pac_islast("dplyr", version = "1.0.0")
pac_islast("S4Vectors")
pac_islast("S4Vectors", version = pac_last("S4Vectors"))

## End(Not run)

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