job_update: Updates job settings.

Description Usage Arguments Value See Also Examples

Description

Updates settings for a given job.

Usage

1
2
3
job_update(id, title = NULL, instructions = NULL, cml = NULL,
  payment_cents = NULL, units_per_assignment = NULL, auto_launch = NULL,
  time_per_assignment = NULL, verbose = TRUE, ...)

Arguments

id

A character string containing an ID for job to be updated.

title

New title.

instructions

New set of instructions.

cml

New layout for job.

payment_cents

Amount, in U.S. cents, that contributors will be paid per task.

units_per_assignment

Number of rows that will comprise one page within a job.

auto_launch

A logical indicating whether to automatically launch rows as they are added.

time_per_assignment

An integer specifying the length of time available per assignment, in seconds. Default is 1800 (i.e., 30 minutes).

verbose

A logical indicating whether to print additional information about the request.

...

Additional arguments passed to cf_query.

Value

A character string containing the job ID, invisibly.

See Also

job_create

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
## Not run: 
# create a 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))

# update job's title
job_update(id, title = "New Title")

# update job's payment
job_update(id, payment_cents = "0.1")

# update job's instructions and units
job_update(id, instructions = "blank", units_per_assignment = 3)

# delete job
job_delete(j)

## End(Not run)

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