Learn R Programming

MTurkR (version 0.2)

RejectAssignment: Reject Assignment

Description

Reject a Worker's assignment (or multiple assignments) submitted for a HIT. Feedback should be provided for why an assignment was rejected.

Usage

RejectAssignment(	assignments, feedback = NULL, 
					keypair = credentials(), print = TRUE, browser = FALSE, 
					log.requests = TRUE, sandbox = FALSE)

Arguments

assignments
A character string containing an AssignmentId, or a vector of multiple character strings containing multiple AssignmentIds, to reject.
feedback
An optional character string containing any feedback for a worker. This must have length 1 or length equal to the number of workers.
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 list of AssignmentIds, feedback (if any), and whether or not each rejection request was valid.

Details

Reject assignments, by AssignmentId (as returned by GetAssignment). More advanced functionality to quickly reject many or all assignments (ala ApproveAllAssignments) is intentionally not provided. RejectAssignments() and reject() are aliases.

References

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

See Also

ApproveAssignment

Examples

Run this code
RejectAssignment(assignments="26XXH0JPPSI23H54YVG7BKLEXAMPLE")

Run the code above in your browser using DataLab