createQtiTask-methods {rqti}R Documentation

Create XML file for question specification

Description

Create XML file for question specification

Usage

createQtiTask(object, dir = NULL, verification = FALSE)

## S4 method for signature 'AssessmentItem'
createQtiTask(object, dir = NULL, verification = FALSE)

Arguments

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 FALSE.

Value

A path to xml file.

Examples

essay <- new("Essay", prompt = "Test task", title = "Essay")
## Not run: 
# creates folder with zip (side effect)
createQtiTask(essay, "result", TRUE)
## End(Not run)

[Package rqti version 0.2.0 Index]