job_convert_gold: Convert uploaded gold for a job

Description Usage Arguments Value Examples

Description

Convert to test questions all rows where column “_golden” is set to “true”. Corresponds to the “Convert Uploaded Test Questions” button on the Data page of the web interface.

Usage

1
job_convert_gold(id, verbose = TRUE, ...)

Arguments

id

A character string specifying the ID for job whose gold questions will be converted.

verbose

A logical indicating whether to print status information regarding the request.

...

Additional arguments passed to cf_query.

Value

A logical.

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
25
26
27
## 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))

# add data
d <- data.frame(content = c("hello", "goodbye", "world")
d[, "_golden"] <- c("true", "false", "false")
job_add_data(id = j, data = d)

# convert gold questions
job_convert_gold(id = j)

# launch job
job_launch(id = j)

# get results for job
report_regenerate(id = j, report_type = "full")
report_get(id = j, report_type = "full")

# delete job
job_delete(id = j)

## End(Not run)

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