Description Usage Arguments Value Examples
View source: R/account_add_tags.R
This will add a new tag to an account. This tag will be added in the tag namespace. If a tag with the same name already exists, this will do nothing. If a tag with the same name exists, and is deleted, it will create a new tag with a new ID.
1 | create_tags(x, name, description)
|
x |
An account to add the tag to. |
name |
A vector of tag names. |
description |
An optional description for each tag. If given, must be
the same length as |
A tibble containing the new tag's details, including the tag's ID.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | ## Not run:
# Create one tag
account("TEST01AA") %>%
create_tags("tag1")
# Create a tag with a description
account("TEST01AA") %>%
create_tags("tag1", "A description")
# Create multiple tags
account("TEST01AA") %>%
create_tags(c("tag1", "tag2"))
# Create multiple tags, with descriptions
account("TEST01AA") %>%
create_tags(c("tag1", "tag2"),
c("description 1", "description2"))
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.