set_tag {sevenbridges} | R Documentation

## Set file tags

### Description

Set file tags

Add new file tags and keep the old tags

### Usage

    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

    ## 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)

[Package sevenbridges version 1.18.1 Index]