Learn R Programming

pacman (version 0.5.1)

p_version: Package Version

Description

p_version - Determine what version a package is in your library.

p_version_cran - Determine what version a package is on CRAN.

p_version_difference - Determine version difference between a local package and CRAN.

Usage

p_version(package = "R")

p_ver(package = "R")

p_version_cran(package = "R")

p_ver_cran(package = "R")

p_version_diff(package = "R")

p_ver_diff(package = "R")

Arguments

package

Name of package (default returns R version).

See Also

packageDescription

Examples

Run this code
# NOT RUN {
p_ver()
p_version()
p_ver(pacman)
p_version(pacman)

p_ver_cran()
p_ver_cran(pacman)

## Compare local to CRAN version
p_ver(pacman) == p_ver_cran(pacman)
p_ver(pacman) > p_ver_cran(pacman)

p_ver_diff()
p_ver_diff(pacman)
# }

Run the code above in your browser using DataLab