Description Usage Arguments Details Value Author(s) References See Also Examples
Dispose of a HIT that is no longer needed. You can only dispose of HITs that are Reviewable, with all assignments either approved or rejected.
1 2 3 |
hit |
A character string containing a HITId or a vector of character strings containing multiple HITIds. Must specify |
hit.type |
An optional character string containing a HITTypeId (or a vector of HITTypeIds). Must specify |
annotation |
An optional character string specifying the value of the |
response.group |
An optional character string specifying what details of each HIT to return of: “Minimal”, “HITQuestion”, “HITDetail”, “HITAssignmentSummary”. For more information, see Common Parameters and HIT Data Structure. |
verbose |
Optionally print the results of the API request to the standard output. Default is taken from |
... |
Additional arguments passed to |
Dispose of a HIT (and its assignment data) when it is no longer needed. Must specify a HITId or a HITTypeId, but not both. HITTypeId uses the SearchHITs
operation to locate HITs of the specified HITType before disposing of them.
disposehit()
is an alias.
A data frame containing a list of HITs and whether the request to dispose of each of them was valid.
Thomas J. Leeper
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | ## Not run:
# Dispose a single HIT
b <- GenerateExternalQuestion("http://www.example.com/","400")
hit1 <-
CreateHIT(hit.type = "2FFNCWYB49F9BBJWA4SJUNST5OFSOW",
expiration = seconds(days = 1),
question=b$string)
ExpireHIT(hit1$HITId) # must be expired before disposing
DiposeHIT(hit1$HITId)
# Dispose all HITs of a given HITType
DisposeHIT(hit.type = hit1$HITTypeId)
# Dispose all HITs of a given batch from the RUI
DisposeHIT(annotation="BatchId:78382;")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.