View source: R/createLoginXml.r
createLoginXml | R Documentation |
In computer-based assessment, logins for each student have to be created beforehand. If logins and password are captured in a common data.frame, function creates several xml files, one for each class or test group.
createLoginXml(
dat,
login,
password,
label,
group = NULL,
class = "Klasse",
dir,
prefix = "test",
sep = "_",
booklet,
mode = "run-hot-return",
login.mode = "monitor-group",
cslb = 5
)
dat |
data.frame with login information. See examples. |
login |
Variable name or column number of the login column in |
password |
Variable name or column number of the password column in |
label |
Variable name or column number of the label column in |
group |
Optional: if several classes or test groups are stored in |
class |
Variable name or column number of the class column in |
dir |
target directory for the xml files |
prefix |
prefix for file name of the xml files |
sep |
separator which separates prefix and remaining xml file name |
booklet |
single string (length 1) for the desired booklet entry in the xml files. See example. |
mode |
single string (length 1) for the desired mode entry in the xml files. See example. |
login.mode |
single string (length 1) for the desired login mode entry in the xml files. See example. |
cslb |
class size lower boundary: if classes have less than |
No return, the files will be written on disk.
file <- system.file("extdata", "logins.xlsx", package = "eatAnalysis")
dat <- readxl::read_excel(file, sheet = "Tabelle1")
createLoginXml (dat=dat, login = "Name", password="Passwort", label = "Label",group = "groupID",
dir = tempdir(), prefix = "logins", sep="_",booklet = "V8DeuTBAPilot2022TH15Faultier")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.