checking if a package version is the most recent one, by default the installed version is compared.
pac_islast(pac, version = NULL, lib.loc = .libPaths(), repos = biocran_repos())
character
a package name.
character
version of a package. Default: NULL
character
vector of search paths with local packages. Default: .libPaths()
character
vector of repositories URLs 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_islast("memoise")
pac_islast("dplyr", version = "1.0.0")
pac_islast("S4Vectors")
pac_islast("S4Vectors", version = pac_last("S4Vectors"))
} # }