ApproveAssignment | R Documentation |
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)
)
assignments |
A character string containing an AssignmentId, or a vector of multiple character strings containing multiple AssignmentIds, to approve. |
feedback |
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. |
rejected |
A logical indicating whether the assignment(s) had
previously been rejected (default |
verbose |
Optionally print the results of the API request to the
standard output. Default is taken from |
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
.
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.
Tyler Burleigh, Thomas J. Leeper
API Reference: Approve Assignment
API Reference: Approve Rejected Assignment
RejectAssignment
## Not run:
# Approve one assignment
ApproveAssignment(assignments = "26XXH0JPPSI23H54YVG7BKLEXAMPLE")
# Approve multiple assignments with the same feedback
ApproveAssignment(assignments = c("26XXH0JPPSI23H54YVG7BKLEXAMPLE1",
"26XXH0JPPSI23H54YVG7BKLEXAMPLE2"),
feedback = "Great work!")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.