formatHIT | R Documentation |
formatHIT
formats the HTML code required to make a MTurk HIT.
formatHIT(
question_prompt,
instruction_overview,
instruction_list,
short_instruction_list,
closing_message,
doc_labels = c("Document 1", "Document 2"),
file_name = "HIT.html"
)
question_prompt |
A string containing the common question prompt used across all pairwise comparison questions. |
instruction_overview |
A string providing general instructions for the HITs |
instruction_list |
A nested list of strings containing bulleted instructions and examples. Each element of the list object corresponds to a separate bullet in the list of instructions. Nesting list objects within one another will allow for nested bullets. |
short_instruction_list |
A nested list of lists containing bulleted instructions
for HITs. This should be an abridged version of |
closing_message |
A string containing the final text presented in the training module. This should contain warnings about worker monitoring and/or rate limiting procedures. |
doc_labels |
A vector of strings indicating the labels to be assigned to each document. |
file_name |
A string containing the desired name of the output HTML file. |
The function writes a generic .html file required to make a MTurk HIT. Though the function is designed for users to pass strings directly into the arguments, the arguments also accept HTML-formatted text.
A string of HTML code that formats a HIT for MTurk. This is also written as a .html file in the working directory for users to make manual revisions.
Ryden Butler
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.