Description Usage Arguments Details Value Author(s) References Examples
Block or unblock 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. GetBlockedWorkers
retrieves your list of currently blocked workers.
1 2 3 4 5 6 | BlockWorker(workers, reasons, verbose = getOption('MTurkR.verbose', TRUE), ...)
UnblockWorker(workers, reasons = NULL, verbose = getOption('MTurkR.verbose', TRUE), ...)
GetBlockedWorkers(pagenumber = NULL, pagesize = NULL,
verbose = getOption('MTurkR.verbose', TRUE), ...)
|
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 or unblocking a worker. This must have length 1 or length equal to the number of workers. It is required for |
pagenumber |
An optional integer (or character string) indicating which page of Blocked Workers search results should be returned. Most users can ignore this. |
pagesize |
An optional integer (or character string) indicating how many Blocked Workers should be returned per page of results. Most users can ignore this and the function will return the first 65,535 blocks. |
verbose |
Optionally print the results of the API request to the standard output. Default is taken from |
... |
Additional arguments passed to |
BlockWorker
prevents the specified worker from completing any of your HITs. UnblockWorker
reverses this operation.
GetBlockedWorkers
retrieves currently blocked workers and the reason recorded for their block. This operation returns the first 65,535 blocked workers (the default for pagesize
; access to additional blocked workers is available by specifying a pagenumber
greater than 1.
BlockWorkers()
and block()
are aliases for BlockWorker
. UnblockWorkers()
and unblock()
are aliases for UnblockWorker
. blockedworkers()
is an alias for GetBlockedWorkers
.
BlockWorker
and UnblockWorker
return a data frame containing the list of workers, reasons (for blocking/unblocking them), and whether the request to block/unblock each of them was valid.
GetBlockedWorkers
returns a data frame containing the list of blocked workers and the recorded reason for the block.
Thomas J. Leeper
API Reference: GetBlockedWorkers
1 2 3 4 5 6 7 | ## Not run:
BlockWorker(worker, reasons="Did not follow photo categorization HIT instructions.")
GetBlockedWorkers()
UnblockWorker(worker)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.