Set file tags

Add new file tags and keep the old tags

set_tag(obj, ...)

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

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

add_tag(obj, ...)

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

# S4 method for 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

if (FALSE) { fl <- a$project("demo")$file("omni") set_tag(fl, "new tag") set_tag(fl, list("new tag", "new tag 2"))} if (FALSE) { fl <- a$project("demo")$file("omni") add_tag(fl, "new tag") add_tag(fl, list("new tag", "new tag 2"))}