job_copy: Copy a job and, optionally, its data to a new job ID.

Description Usage Arguments Value See Also Examples

Description

job_copy copies an existing job to a new job ID.

Usage

1
job_copy(id, rows = TRUE, gold = FALSE, verbose = TRUE, ...)

Arguments

id

A character string containing an ID for job.

rows

A logical indicating whether to copy rows from the original job.

gold

A logical indicating whether to copy only gold questions from the original job.

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, job_update

Examples

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

# copy job w/rows
j2 <- job_copy(id = j1)

# copy job w/only gold questions
j3 <- job_copy(id = j1, rows = FALSE, gold = TRUE)

# copy job w/o any rows
j4 <- job_copy(id = j1, rows = FALSE)

# cleanup
job_delete(j1)
job_delete(j2)
job_delete(j3)
job_delete(j4)

## End(Not run)

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