package_info: Information about the currently loaded packages, or about a...

Description Usage Arguments Value Examples

View source: R/package-info.R

Description

Information about the currently loaded packages, or about a chosen set

Usage

1
2
3
4
5
package_info(
  pkgs = c("loaded", "attached", "installed")[1],
  include_base = FALSE,
  dependencies = NA
)

Arguments

pkgs

Which packages to show. It may be:

  • NULL or "loaded": show all loaded packages,

  • "attached": show all attached packages,

  • "installed": show all installed packages,

  • a character vector of package names. Their (hard) dependencies are also shown by default, see the dependencies argument.

include_base

Include base packages in summary? By default this is false since base packages should always match the R version.

dependencies

Whether to include the (recursive) dependencies as well. See the dependencies argument of utils::install.packages().

Value

A data frame with columns:

See session_info() for the description of the printed columns by package_info (as opposed to the returned columns).

Examples

1
2
package_info()
package_info("sessioninfo")

sessioninfo documentation built on Dec. 11, 2021, 9:07 a.m.