MTApprove: Wrapper function for MTurkR::ApproveAssignment with error...

Description Usage Arguments Value

View source: R/MTApprove.R

Description

This function approves assignments passed to it from a results object passed to it from an MTurk GetAssigment call. In addition, it tries to handle various errors, and either reports the error/warning, or attempts to approve the assignment again.

Usage

1
2
MTApprove(results = NULL, feedback = "Thank you.", outType = "full",
  verbose = TRUE, sandbox = TRUE)

Arguments

results

A results object returned from MTurk GetAssigment.

feedback

The response to give to the worker for approving their assignment. Default is "Thank you.".

outType

String, case insensitive. Either set to "approved" or "full". If "approved", only the newly counted subset will be returned. Default is "full".

verbose

Logical. If TRUE (default), will print additional messages.

sandbox

Logical. Whether to use the sandbox (TRUE) or not; default is TRUE.

Value

If outType = "full", function returns the original object with the column AssignmentStatus updated with 'ApprovedLocal' if newly approved. If outType="approved", function returns only the portion of the object newly approved, with the AssignmentStatus column appropriately updated.


andrewbrownphd/MetaTurkR documentation built on Nov. 23, 2019, 4:17 p.m.