Learn R Programming

discgolf (version 0.2.0)

groups: Work with groups

Description

Work with groups

Usage

groups(url = NULL, key = NULL, user = NULL, ...)

group_members(name, url = NULL, key = NULL, user = NULL, ...)

group_create(name, url = NULL, key = NULL, user = NULL, ...)

group_delete(id, url = NULL, key = NULL, user = NULL, ...)

Arguments

url

Base url for a Discourse installation. See disc_setup

key

Your api key on the Discourse installation. See disc_setup

user

Your user name on the Discourse installation. See disc_setup

...

Named parameters passed on to HttpClient

name

(character) A group name. required

id

(numeric) A group id. required

Examples

Run this code
# NOT RUN {
# all groups
groups()

# specific group by name
group_members("admins")
group_members("moderators")
group_members("trust_level_3")

# create a group
(res <- group_create("group_testing2"))

# delete a group
group_delete(res$basic_group$id)
# }

Run the code above in your browser using DataLab