tag-methods: Set file tags

Description Usage Arguments Value Examples

Description

Set file tags

Add new file tags and keep the old tags

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
set_tag(obj, ...)

## S4 method for signature 'FilesList'
set_tag(obj, ...)

## S4 method for signature 'Files'
set_tag(obj, ...)

add_tag(obj, ...)

## S4 method for signature 'FilesList'
add_tag(obj, ...)

## S4 method for signature 'Files'
add_tag(obj, ...)

Arguments

obj

single File or FileList

...

passed to obj$set_tag() or obj$add_tag()

Value

tag list

tag list

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## Not run: 
fl <- a$project("demo")$file("omni")
set_tag(fl, "new tag")
set_tag(fl, list("new tag", "new tag 2"))
## End(Not run)
## Not run: 
fl <- a$project("demo")$file("omni")
add_tag(fl, "new tag")
add_tag(fl, list("new tag", "new tag 2"))
## End(Not run)

tengfei/sevenbridges documentation built on March 27, 2021, 1:22 p.m.