createQtiTask-methods | R Documentation |
Create XML or zip file for question specification
createQtiTask(object, dir = ".", verification = FALSE, zip = FALSE)
## S4 method for signature 'AssessmentItem'
createQtiTask(object, dir = ".", verification = FALSE, zip = FALSE)
## S4 method for signature 'character'
createQtiTask(object, dir = getwd())
object |
An instance of the S4 object (SingleChoice, MultipleChoice, Essay, Entry, Ordering, OneInRowTable, OneInColTable, MultipleChoiceTable, DirectedPair). |
dir |
A character value, optional; a folder to store xml file; working directory is used by default. |
verification |
A boolean value, optional; to check validity of xml file.
Default is |
zip |
A boolean value, optional; the |
A path to xml or zip file.
essay <- new("Essay", prompt = "Test task", title = "Essay")
## Not run:
# creates folder with XML (side effect)
createQtiTask(essay, "result")
# creates folder with zip (side effect)
createQtiTask(essay, "result", zip = TRUE)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.