Description Usage Arguments Value See Also Examples
job_copy
copies an existing job to a new job ID.
1 |
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 |
A character string containing the job ID, invisibly.
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.