Learn R Programming

rextendr (version 0.4.0)

read_cargo_metadata: Retrieve metadata for packages and workspaces

Description

Retrieve metadata for packages and workspaces

Usage

read_cargo_metadata(path = ".", dependencies = FALSE, echo = FALSE)

Value

A list including the following elements:

  • packages

  • workspace_members

  • workspace_default_members

  • resolve

  • target_directory

  • version

  • workspace_root

  • metadata

Arguments

path

character scalar, the R package directory

dependencies

Default FALSE. A logical scalar, whether to include all recursive dependencies in stdout.

echo

Default FALSE. A logical scalar, should cargo command and outputs be printed to the console.

Details

For more details, see Cargo docs for cargo-metadata. See especially "JSON Format" to get a sense of what you can expect to find in the returned list.

Examples

Run this code
if (FALSE) {
read_cargo_metadata()
}

Run the code above in your browser using DataLab