pkgversion: Gets the package version numbers

Description Usage Arguments Value Author(s) Examples

Description

A set of functions to retrieve the version number from packages available in Bioconductor or on Github. The version numbers are extracted from the Bioconductor package landing page and the Github master branch, irrespective or the package's local version or availability.

Usage

1
2
3
4
5
6
biocpkgversion(pkg, which = c("release", "devel"), type = c("software",
  "experiment", "annotation"), ...)

githubpkgversion(pkg, user = NULL, ...)

cranpkgversion(pkg, ...)

Arguments

pkg

The name of the package(s) or, for githubpkgversion, if user is NULL (default) the username and pkg formatted as "user/package".

which

Either of "release" (default) or "devel".

type

One of "software", "experiment" or "annotation", defining the type of Bioconductor package is to be queried.

...

additional parameters passed to sapply, in particular simplify (default is TRUE) and USE.NAMES (default is TRUE).

user

the Github user or organisation where to find the package repository. Default is 'NULL' and ignored. Otherwise, the packge name is constructed by concatenating to '"user/pkg"'.

Value

A vector of length equal to the length of pkg containing the respective version numbers. By default, the return value is named (USE.NAMES = TRUE) and simplified to a character vector (simplify = TRUE).

Author(s)

Laurent Gatto

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
biocpkgversion("MSnbase", "release")
biocpkgversion("MSnbase", USE.NAMES = FALSE)
biocpkgversion("MSnbase", "devel")
biocpkgversion(c("MSnbase", "pRoloc"))
biocpkgversion(c("MSnbase", "pRoloc"), USE.NAMES = FALSE)
githubpkgversion("lgatto/MSnbase")
githubpkgversion("MSnbase", "lgatto")
githubpkgversion("lgatto/MSnbase", USE.NAMES = FALSE)
githubpkgversion(c("lgatto/MSnbase", "lgatto/pRoloc"))
cranpkgversion(c("sequences", "MALDIquant"))

lgatto/biocpkgs documentation built on May 13, 2019, 1:38 a.m.