pkgs_versions: Returns the fields with packages in DESCRIPTION with versions

Description Usage Arguments Value Author(s) Examples

View source: R/pkgs_versions.R

Description

This function returns the packages mentioned in the DESCRIPTION file of a package and returns the current versions of them appended after the package name. So, you can copy and paste directly in the DESCRIPTION file to inform the minimal versions required for each dependence. The versions appended are those of the package in the current environment. So, be aware of using the correct packages version to develop packages and inform version only of those packages that are critical for the functionality of yours.

Usage

1

Arguments

pkg

character[1] Name of an available package.

Value

When assigned, the return value is a character that can be properly display with cat().

Author(s)

Walmes Zeviani, walmes@ufpr.br.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
## Not run: 

pkgs_versions("lattice")

devtools::load_all("~/Projects/wzRfun/")
pkgs_versions("wzRfun")

devtools::load_all("~/Projects/labestData")
u <- pkgs_versions("labestData")
cat(u)


## End(Not run)

walmes/wzRfun documentation built on Aug. 10, 2021, 2:19 p.m.