Learn R Programming

rqti (version 1.0.0)

createQtiTask-methods: Create XML or zip file for question specification

Description

Create XML or zip file for question specification

Usage

createQtiTask(object, dir = ".", verification = FALSE, zip = FALSE)

# S4 method for AssessmentItem createQtiTask(object, dir = ".", verification = FALSE, zip = FALSE)

# S4 method for character createQtiTask(object, dir = getwd())

Value

A path to xml or zip file.

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.

zip

A boolean value, optional; the TRUE value allows to create a zip archive with the manifest and task files inside. Default is FALSE.

Examples

Run this code
essay <- new("Essay", prompt = "Test task", title = "Essay")
if (FALSE) {
# creates folder with XML (side effect)
createQtiTask(essay, "result")
# creates folder with zip (side effect)
createQtiTask(essay, "result", zip = TRUE)
}

Run the code above in your browser using DataLab