BlockWorker {pyMTurkR} | R Documentation |
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)
)
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 |
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
.
Value
BlockWorker
returns a data frame containing the list of workers,
reasons (for blocking them), and whether the request to block was valid.
Author(s)
Tyler Burleigh, Thomas J. Leeper
References
Examples
## Not run:
BlockWorker("A1RO9UJNWXMU65", reasons="Did not follow HIT instructions.")
UnblockWorker("A1RO9UJNWXMU65")
## End(Not run)