CreateHIT(hit.type = NULL, question = NULL, validate.question = FALSE,
expiration, assignments = "1",
assignment.review.policy = NULL, hit.review.policy = NULL,
annotation = NULL, unique.request.token = NULL,
title = NULL, description = NULL, reward = NULL, duration = NULL,
keywords = NULL,
auto.approval.delay = NULL, qual.req = NULL,
hitlayoutid = NULL, hitlayoutparameters = NULL,
response.group = NULL, verbose = getOption('MTurkR.verbose'), ...)
hitlayoutid
and, optionally, hitlayoutparameters
can be squestion
parameter should be validated against the relevant MTurk schema prior to creating the HIT (operation will fail if it does not validate, and will return validation information). Default is FALSE<
seconds
). Minimum of 30 seconds and maximum of 365 dseconds
), before a submitted assignment is automatically granted. Maximum of 30 days.GenerateQualificationRequirement
.GenerateHITLayoutParameter
. Must be specified along with a hitlay
getOption('MturkR.verbose')
.request
.ResponseGroup
option.question
parameter or, if a HIT template created in the Requester User Interface (RUI) is being used, the appropriate hitlayoutid
can be specified. If the HIT template contains variable placeholders, then the hitlayoutparameters
should also be specified.
When creating a ExternalQuestion HITs, the GenerateHITsFromTemplate
function can emulate the HIT template functionality by converting a template .html file into a set of individual HIT .html files (that would also have to be uploaded to a web server) and executing CreateHIT
for each of these external files with an appropriate ExternalQuestion data structure specified for the question
parameter.
createhit()
and create()
are aliases.ExtendHIT
ExpireHIT
DisableHIT
DisposeHIT
a <- GenerateLayoutParameter("message","Text to display in HIT")
CreateHIT(hit.type="2FFNCWYB49F9BBJWA4SJUNST5OFSOW",
hitlayoutid="23ZGOOGQSCM61T1H5H9U0U00OQWFFU",
hitlayoutparameters=a)
b <- GenerateExternalQuestion("http://www.example.com/myhit.html","400")
CreateHIT(hit.type="2FFNCWYB49F9BBJWA4SJUNST5OFSOW", question=b$string)
CreateHIT(title="Survey",
description="5 question survey",
reward=".10",
duration=seconds(days=4),
keywords="survey, questionnaire",
question=b$string)
Run the code above in your browser using DataLab