Learn R Programming

MTurkR (version 0.5.1)

DisableHIT: Disable HIT

Description

Disabling a HIT is probably not what you want to do. DisableHIT automatically removes the HIT from the MTurk server, approves (and thus pays for) all submitted and pending assignments, and then permanently deletes all assignment data.

Usage

DisableHIT( hit = NULL, hit.type = NULL, response.group = NULL, 
            verbose = getOption('MTurkR.verbose'), ...)

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 (or a vector of HITTypeIds).
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
verbose
Optionally print the results of the API request to the standard output. Default is taken from getOption('MturkR.verbose').
...
Additional arguments passed to request.

Value

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

Details

Disable a HIT (and its assignment data). This is a somewhat risky function because it automatically approves all pending assignments and then disposes of everything. DisposeHIT is probably what most users will use to delete HIT and assignment data that is no longer needed. disable() is an alias.

References

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

See Also

CreateHIT ExtendHIT ExpireHIT DisposeHIT

Examples

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

Run the code above in your browser using DataLab