View source: R/MTAssembleHITHTML.R
Function to assemble HIT HTML into a single file, ready to upload to MTurk.
1 2 3 4 | MTAssembleHITHTML(inputLoc = "input", content = "import",
innerHTML.html = "import", innerScript.js = "import",
hitShell.html = "import", button = "hit", skipPattern = NULL,
write.to = "console", quiet = TRUE, sandbox = TRUE)
|
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
|
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 |
button |
Specifies which submit button configuration to use: "hit", "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.