GrantBonus
to implement panels.ContactWorker(subjects, msgs, workers, batch = FALSE, keypair = credentials(),
print = getOption('MTurkR.print'),
browser = getOption('MTurkR.browser'),
log.requests = getOption('MTurkR.log'),
sandbox = getOption('MTurkR.sandbox'),
validation.test = getOption('MTurkR.test'))
FALSE
), indicating whether workers should be contacted in batches of 100 (the maximum allowed by the API). This significantly reduces the time required to contact workers, but eliminates the ability to send customized mecredentials
.TRUE
.FALSE
.TRUE
. See readlogfile
for details.FALSE
.FALSE
.batch=TRUE
), workers are contacted in batches of 100 with a single identical email. If one email fails (e.g., for one worker) the other emails should be sent successfully. That is to say, the request as a whole will be valid but will return additional information about which workers were not contacted. This information can be found in the MTurkR log file, or by calling the request with browser=TRUE
and viewing the XML responses directly.
Note: It is only possible to contact workers who have performed work for you previously. When attempting to contact a worker who has not worked for you before, this function will indicate that the request was successful even though the email is not sent. The function will return a value of Valid
when this occurs. The printed results may therefore appear contradictory because MTurk reports that requests to contact these workers are Valid
, but they are not actually contacted. In batch, this means that a batch will be valid but individual ineligible workers will be reported as not contacted.
ContactWorkers()
and contact()
are aliases.a <- "Complete a follow-up survey for $.50"
b <- "Thanks for completing my HIT!
I will pay a $.50 bonus if you complete a follow-up survey by Friday at 5:00pm.
The survey can be completed at
http://www.surveymonkey.com/s/pssurvey?c=A1RO9UEXAMPLE."
c1 <- "A1RO9UEXAMPLE"
d <- ContactWorker(subjects=a,msgs=b,workers=c)
c2 <- c("A1RO9EXAMPLE1","A1RO9EXAMPLE2","A1RO9EXAMPLE3")
3 <- ContactWorker(subjects=a,msgs=b,workers=c2)
Run the code above in your browser using DataLab