powered by
Retrieve metadata for packages and workspaces
read_cargo_metadata(path = ".", dependencies = FALSE, echo = FALSE)
A list including the following elements:
list
packages
workspace_members
workspace_default_members
resolve
target_directory
version
workspace_root
metadata
character scalar, the R package directory
Default FALSE. A logical scalar, whether to include all recursive dependencies in stdout.
FALSE
Default FALSE. A logical scalar, should cargo command and outputs be printed to the console.
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.
cargo-metadata
if (FALSE) { read_cargo_metadata() }
Run the code above in your browser using DataLab