Learn R Programming

MTurkR (version 0.5)

GenerateHTMLQuestion: Generate HTMLQuestion

Description

Generate an HTMLQuestion data structure for use in the ‘Question’ parameter of CreateHIT.

Usage

GenerateHTMLQuestion(character = NULL, file = NULL, frame.height = 450)

Arguments

character

An optional character string from which to construct the HTMLQuestion data structure.

file

An optional character string containing a filename from which to construct the HTMLQuestion data structure.

frame.height

A character string containing the integer value (in pixels) of the frame height for the HTMLQuestion iframe.

Value

A list containing xml.parsed, an XML data structure, string, xml formatted as a character string, and url.encoded, character string containing a URL query parameter-formatted HTMLQuestion data structure for use in the question parameter of CreateHIT.

Details

Must specify either character or file.

References

API Reference

See Also

CreateHIT

GenerateExternalQuestion

GenerateHITLayoutParameter

Examples

Run this code
# NOT RUN {
GenerateHTMLQuestion(file="mynewhit.html")
# }

Run the code above in your browser using DataLab