SetHITAsReviewing {pyMTurkR} | R Documentation |
Set HIT as “Reviewing”
Description
Update the review status of a HIT, from “Reviewable” to “Reviewing” or the reverse.
Usage
SetHITAsReviewing(
hit = NULL,
hit.type = NULL,
annotation = NULL,
revert = FALSE,
verbose = getOption("pyMTurkR.verbose", TRUE)
)
Arguments
hit |
An optional character string containing a HITId, or a vector
character strings containing HITIds, whose status are to be changed. Must
specify |
hit.type |
An optional character string specifying a HITTypeId (or a
vector of HITTypeIds), all the HITs of which should be set as
“Reviewing” (or the reverse). Must specify |
annotation |
An optional character string specifying the value of the
|
revert |
An optional logical to revert the HIT from “Reviewing” to “Reviewable”. |
verbose |
Optionally print the results of the API request to the
standard output. Default is taken from |
Details
A function to change the status of one or more HITs (or all HITs of a given
HITType) to “Reviewing” or the reverse. This affects what HITs are
returned by GetReviewableHITs
. Must specify a HITId xor a
HITTypeId xor an annotation.
reviewing()
and UpdateHITReviewStatus()
are aliases.
Value
A data frame containing HITId, status, and whether the request to change the status of each was valid.
Author(s)
Tyler Burleigh, Thomas J. Leeper
References
See Also
Examples
## Not run:
a <- GenerateExternalQuestion("https://www.example.com/", "400")
hit1 <- CreateHIT(hit.type = "2FFNCWYB49F9BBJWA4SJUNST5OFSOW",
question = a$string,
expiration = seconds(hours = 1))
SetHITAsReviewing(hit1$HITId)
# cleanup
DisableHIT(hit1$HITId)
## End(Not run)