question: Clase R6 para la gestion de las preguntas de moodle

Description Public fields Methods

Description

creación de bancos de preguntas para moodle con clases R

Manual: https://mcstllns.github.io/moodleQ/

Public fields

type

El tipo de pregunta

prop

Contiene todas las propiedades de las preguntas

Methods

Public methods


Method new()

Usage
question$new(type = NA, confuser = 0, ...)

Method set()

Usage
question$set(...)

Method remove()

Usage
question$remove(...)

Method print()

Usage
question$print()

Method errorHandler()

Usage
question$errorHandler(id)

Method xml_parser()

Usage
question$xml_parser(l, nombre)

Method xml()

Usage
question$xml(...)

Method removeanswer()

Usage
question$removeanswer(num)

Method addanswer()

Usage
question$addanswer(
  text,
  fraction = 0,
  format = self$prop$format$.value,
  tolerance = 0.001,
  tolerancetype = 2,
  correctanswerformat = 1,
  correctanswerlength = 3
)

Method addfile()

Usage
question$addfile(drivePath, name = NULL, quizPath = "/")

Method addDataset()

Usage
question$addDataset(df, name = NA, status = "shared", type = "calculated")

Method clone()

The objects of this class are cloneable with this method.

Usage
question$clone(deep = FALSE)
Arguments
deep

Whether to make a deep clone.


mcstllns/moodleQ documentation built on Feb. 1, 2022, 5:44 a.m.