Learn R Programming

MTurkR (version 0.2)

DisposeHIT: Dispose HIT

Description

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.

Usage

DisposeHIT(	hit = NULL, hit.type = NULL, response.group = NULL, 
			keypair = credentials(), print = TRUE, browser = FALSE, 
			log.requests = TRUE, sandbox = FALSE)

Arguments

hit
A character string containing a HITId or a vector of character strings containing multiple HITIds.
hit.type
An optional character string containing a HITTypeId.
response.group
An optional character string specifying what details of each HIT to return of: Minimal, HITQuestion, HITDetail, HITAssignmentSummary. For more information, see http://docs.amazonwebs
keypair
A two-item character vector containing an AWS Access Key ID in the first position and the corresponding Secret Access Key in the second position. Set default with credentials.
print
Optionally print the results of the API request to the standard output. Default is TRUE.
browser
Optionally open the request in the default web browser, rather than opening in R. Default is FALSE.
log.requests
A logical specifying whether API requests should be logged. Default is TRUE. See readlogfile for details.
sandbox
Optionally execute the request in the MTurk sandbox rather than the live server. Default is FALSE.

Value

  • A dataframe containing a list of HITs and whether the request to dispose of each of them was valid.

Details

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.

References

http://docs.amazonwebservices.com/AWSMechTurk/latest/AWSMturkAPI/ApiReference_DisposeHITOperation.html{API Reference}

See Also

CreateHIT ExtendHIT ExpireHIT DisableHIT

Examples

Run this code
DisposeHIT(hit="2MQB727M0IGF304GJ16S1F4VE3AYDQ")
DisposeHIT(hit.type="2FFNCWYB49F9BBJWA4SJUNST5OFSOW")

Run the code above in your browser using DataLab