View source: R/MTAssembleHoneyHTML.R
Function to assemble Honey Pot HIT HTML into a single file, ready to upload to MTurk. This is useful for supplying feedback in realtime. To use Honey Pots without feedback, just construct a normal HIT and evaluate answers on the backend.
1 2 3 4 5 |
inputLoc |
Location where input files are. Default is |
content |
Content to be parsed into the HTML. The columns of Content will be matched to parameterized
|
honeyVars |
A string or vector of strings defining what variables that answers should be checked against. |
innerHTML.html |
The HTML that is common to HITs, honey pots, and examples. Typically includes content placeholders
and questions. If |
innerScript.js |
JavaScript that should be included with every HIT, Example, or Honey Pot. If |
hitShell.html |
If |
honeyScript |
Logical. If |
button |
Specifies which submit button configuration to use: "honey" or "example". |
skipPattern |
A matrix or list of matrices containing two columns: the input name from the HTML, and the condition value. The first row represents the condition that will trigger the skipPattern, and the subsequent rows provide the values to be applied to the skipped inputs. |
write.to |
String. If |
quiet |
Logical. If |
sandbox |
Logical. Defines whether the HTML should be prepared for sandbox or live. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.