Learn R Programming

pyMTurkR (version 1.1.6)

BlockWorker: Block Worker(s)

Description

Block a worker. This prevents a worker from completing any HITs for you while they are blocked, but does not affect their ability to complete work for other requesters or affect their worker statistics.

Usage

BlockWorker(
  workers,
  reasons = NULL,
  verbose = getOption("pyMTurkR.verbose", TRUE)
)

Value

BlockWorker returns a data frame containing the list of workers, reasons (for blocking them), and whether the request to block was valid.

Arguments

workers

A character string containing a WorkerId, or a vector of character strings containing multiple WorkerIds.

reasons

A character string containing a reason for blocking a worker. This must have length 1 or length equal to the number of workers.

verbose

Optionally print the results of the API request to the standard output. Default is taken from getOption('pyMTurkR.verbose', TRUE).

Author

Tyler Burleigh, Thomas J. Leeper

Details

BlockWorker prevents the specified worker from completing any of your HITs.

BlockWorkers(), block() and CreateWorkerBlock(), are aliases for BlockWorker. UnblockWorkers(), unblock(), and DeleteWorkerBlock() are aliases for UnblockWorker. blockedworkers() is an alias for GetBlockedWorkers.

References

API Reference: Block

Examples

Run this code

if (FALSE) {
BlockWorker("A1RO9UJNWXMU65", reasons="Did not follow HIT instructions.")
UnblockWorker("A1RO9UJNWXMU65")
}

Run the code above in your browser using DataLab