Description Usage Arguments Examples
Work with badges
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | badges(...)
badges_user(username, ...)
badge_create(
name,
badge_type_id,
description = NULL,
allow_title = NULL,
multiple_grant = NULL,
icon = NULL,
listable = NULL,
target_posts = NULL,
enabled = NULL,
auto_revoke = NULL,
badge_grouping_id = NULL,
show_posts = NULL,
image = NULL,
long_description = NULL,
...
)
|
... |
Named parameters passed on to |
username |
A current user name. required |
name |
(character) A badge name to be created. required |
badge_type_id |
(integer) A badge type id. one of 1 (gold), 2 (silver), or 3 (bronze). required |
description |
(character) A description(character) . optional |
allow_title |
(logical) Allow a title. optional |
multiple_grant |
(character) multiple grant. optional |
icon |
(character) icon. optional |
listable |
(logical) listable. optional |
target_posts |
(character) . optional |
enabled |
(logical) enabled or not. optional |
auto_revoke |
(character) auto revoke. optional |
badge_grouping_id |
(character) badge grouping id. optional |
show_posts |
(logical) show posts. optional |
image |
(character) an image. optional |
long_description |
(character) long description. optional |
1 2 3 4 5 6 7 8 9 10 11 | ## Not run:
# all badges
badges()
# specific badge by name
badges_user("sckott")
# create a badge
(res <- badge_create(name = "funnestbadge", badge_type_id = 3))
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.