Learn R Programming

MTurkR (version 0.2)

ExpireHIT: Expire HIT

Description

Force a HIT to expire immediately, as opposed to at its prespecified expiration time. Expired HITs can be extended with the ExtendHIT operation.

Usage

ExpireHIT(hit = NULL, hit.type = 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.
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 the HITId(s) and whether each expiration request was valid.

Details

A function to (prematurely) expire a HIT (or multiple HITs), thereby preventing any additional assignments from being completed. Pending assignments can still be submitted. An expired HIT can be reactived by adding additional time to its expiration using ExtendHIT. expire() is an alias.

References

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

See Also

CreateHIT ExtendHIT DisableHIT DisposeHIT

Examples

Run this code
ExpireHIT(hit="2MQB727M0IGF304GJ16S1F4VE3AYDQ")

Run the code above in your browser using DataLab