Learn R Programming

MTurkR (version 0.2)

SetHITAsReviewing: Set HIT as Reviewing

Description

Update the status of a HIT, from Reviewable to Reviewing or the reverse.

Usage

SetHITAsReviewing(	hit = NULL, hit.type = NULL, revert = FALSE, 
					keypair = credentials(), print = TRUE, browser = FALSE, 
					log.requests = TRUE, sandbox = FALSE)

Arguments

hit
An optional chracter character string containing a HITId, or a vector character strings containing HITIds, whose status are to be changed.
hit.type
An optional character string specifying a HITTypeId, all the HITs of which should be set as Reviewing (or the reverse).
revert
An optional logical to revert the HIT from Reviewing to Reviewable.
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 HITId, status, and whether the request to change the status of each was valid.

Details

A function to change the status of one or more HITs (or all HITs of a given HITType) to Reviewing or the reverse. This affects what HITs are returned by GetReviewableHITs. Must specify a HITId xor a HITTypeId. reviewing() is an alias.

References

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

See Also

GetReviewableHITs

Examples

Run this code
SetHITAsReviewing("2MQB727M0IGF304GJ16S1F4VE3AYDQ")

Run the code above in your browser using DataLab