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.

pkgs_versions(pkg)

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().

Examples

# NOT RUN { pkgs_versions("lattice") devtools::load_all("~/Projects/wzRfun/") pkgs_versions("wzRfun") devtools::load_all("~/Projects/labestData") u <- pkgs_versions("labestData") cat(u) # }