Approve one or more submitted assignments, or approve all assignments for a given HIT or HITType. Also allows you to approve a previously rejected assignment. This function spends money from your MTurk account.
ApproveAssignment(assignments, feedback = NULL, rejected = FALSE,
verbose = getOption("pyMTurkR.verbose", TRUE))
A character string containing an AssignmentId, or a vector of multiple character strings containing multiple AssignmentIds, to approve.
An optional character string containing any feedback for a worker. This must have length 1 or length equal to the number of workers. Maximum of 1024 characters.
A logical indicating whether the assignment(s) had
previously been rejected (default FALSE
), or a vector of logicals.
Optionally print the results of the API request to the
standard output. Default is taken from getOption('pyMTurkR.verbose',
TRUE)
.
A data frame containing the list of AssignmentIds, feedback (if any), whether previous rejections were to be overriden, and whether or not each approval request was valid.
Approve assignments, by AssignmentId (as returned by
GetAssignment
or by HITId or HITTypeId. Must specify
assignments
. ApproveAllAssignments
approves all assignments of a given HIT or
HITType without first having to perform GetAssignment
.
ApproveAssignments()
and approve()
are aliases for ApproveAssignment
.
approveall()
is an alias for ApproveAllAssignments
.
# NOT RUN {
# }
# NOT RUN {
# Approve one assignment
ApproveAssignment(assignments = "26XXH0JPPSI23H54YVG7BKLEXAMPLE")
# Approve multiple assignments with the same feedback
ApproveAssignment(assignments = c("26XXH0JPPSI23H54YVG7BKLEXAMPLE1",
"26XXH0JPPSI23H54YVG7BKLEXAMPLE2"),
feedback = "Great work!")
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab