Print package DESCRIPTION

print_pkg_description(pkg)

Arguments

pkg

character string indicating a package name.

Details

This function is a simple wrapper around functions to find the DESCRIPTION file for an installed R package, and print lines to the console.

When the package is not installed, or a temporary R package is not in the search path, error messages are returned accordingly.

See also

Other jamsession utilities: jamsession_paths()

Examples

print_pkg_description("base")
#> Package: base #> Version: 3.6.1 #> Priority: base #> Title: The R Base Package #> Author: R Core Team and contributors worldwide #> Maintainer: R Core Team <R-core@r-project.org> #> Description: Base R functions. #> License: Part of R 3.6.1 #> Suggests: methods #> Built: R 3.6.1; ; 2019-07-06 02:01:41 UTC; unix