repo_attr: Get item attribute.

Description Usage Arguments Value See Also Examples

View source: R/repo_public.R

Description

Get item attribute.

Usage

1
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

1
2
3
4
5
6
7
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)

repo documentation built on March 26, 2020, 8:25 p.m.