Description Public fields Methods
creación de bancos de preguntas para moodle con clases R
Manual: https://mcstllns.github.io/moodleQ/
type
El tipo de pregunta
prop
Contiene todas las propiedades de las preguntas
new()
question$new(type = NA, confuser = 0, ...)
set()
question$set(...)
remove()
question$remove(...)
print()
question$print()
errorHandler()
question$errorHandler(id)
xml_parser()
question$xml_parser(l, nombre)
xml()
question$xml(...)
removeanswer()
question$removeanswer(num)
addanswer()
question$addanswer( text, fraction = 0, format = self$prop$format$.value, tolerance = 0.001, tolerancetype = 2, correctanswerformat = 1, correctanswerlength = 3 )
addfile()
question$addfile(drivePath, name = NULL, quizPath = "/")
addDataset()
question$addDataset(df, name = NA, status = "shared", type = "calculated")
clone()
The objects of this class are cloneable with this method.
question$clone(deep = FALSE)
deep
Whether to make a deep clone.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.