repo_tags: List all tags

Description Usage Arguments Value See Also Examples

View source: R/repo_public.R

Description

Shows list of all unique tags associated with any item in the repository.

Usage

1

Arguments

name

The name of a repository item.

Value

Character vector of unique tags defined in the repo.

See Also

repo_put

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
rp_path <- file.path(tempdir(), "example_repo")
rp <- repo_open(rp_path, TRUE)

## Putting two items with a few tags
rp$put(1, "item1", "Sample item 1",
    c("repo_tags", "tag1"))
rp$put(2, "item2", "Sample item 2",
    c("repo_tags", "tag2"))

## Looking up tags
rp$tags()

## wiping temporary repo
unlink(rp_path, TRUE)

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