job_channel_list: List available channels

Description Usage Arguments Details Value See Also Examples

Description

Retrieve a list of available channels for a job

Usage

1

Arguments

id

A character string containing an ID for job.

...

Additional arguments passed to cf_query.

Details

This functionality will be deprecated by Crowdflower eventually and will be removed from the package when that happens.

Value

A list.

See Also

job_channel_add, job_channel_remove

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
## Not run: 
# create new job
f1 <- system.file("templates/instructions1.html", package = "crowdflower")
f2 <- system.file("templates/cml1.xml", package = "crowdflower")
j <- job_create(title = "Job Title", 
                instructions = readChar(f1, nchars = 1e8L),
                cml = readChar(f2, nchars = 1e8L))

# list available channels
ch <- job_channel_list(j)
ch

# add new channel
job_channel_add(j, ch[1])

# remove a channel
job_channel_remove(j, ch[1])

## End(Not run)

cloudyr/crowdflower documentation built on May 13, 2019, 8:20 p.m.