Learn R Programming

repo (version 2.1.5)

repo_attr: Get item attribute.

Description

Get item attribute.

Usage

repo_attr(name, attrib)

Arguments

name

An item name.

attrib

An attribute name (currently can be only "path").

Value

The item's attribute value.

See Also

repo_entries, repo_get

Examples

Run this code
# NOT RUN {
rp_path <- file.path(tempdir(), "example_repo")
rp <- repo_open(rp_path, TRUE)
rp$put(1, "item1", "Sample item 1", "tag1")
print(rp$attr("item1", "path"))

## wiping temporary repo
unlink(rp_path, TRUE)
# }

Run the code above in your browser using DataLab